Skip to content
Snippets Groups Projects

Emoji reactions

Merged Shpuld Shpludson requested to merge feat/emoji-reactions into develop
1 unresolved thread
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
@@ -4,16 +4,13 @@ const EmojiReactions = {
props: ['status'],
computed: {
emojiReactions () {
console.log(this.status.emoji_reactions)
return this.status.emoji_reactions
}
},
methods: {
reactedWith (emoji) {
// return []
const user = this.$store.state.users.currentUser
const reaction = this.status.emoji_reactions.find(r => r.emoji === emoji)
console.log(reaction)
return reaction.accounts && reaction.accounts.find(u => u.id === user.id)
},
reactWith (emoji) {
Loading