feat: enable toggling emoji reactions using the reactions themselves

This commit is contained in:
Jonathan Rainville 2020-08-12 14:53:59 -04:00 committed by Iuri Matias
parent 5f119e1ead
commit 3ca1c470a5
1 changed files with 9 additions and 0 deletions

View File

@ -94,6 +94,15 @@ Item {
font.pixelSize: 12
color: modelData.currentUserReacted ? Style.current.currentUserTextColor : Style.current.textColor
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
chatsModel.toggleEmojiReaction(messageId, modelData.emojiId)
}
}
}
}
}