Skip to content

Broadcast update replaces the undo_vote_icon for users who voted. #8

@madike7

Description

@madike7

When the comment author updates his post and a different user has upvoted the post, when the comment frame is replaced, the undo_vote_icon turns to the default upvote icon which is confusing the user that already upvoted this comment.
When i refresh the page, the icon is the correct one (undo_vote) if the user has liked the comment.
How can it be possible with devise, to check if the current_user has already upvoted when we broadcast the comment update to other users with comment_for_stream. Since static is true, it's always going to render the up_vote icon (for create and update).
Love you logic on this one by the way! Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions