feat: enable toggling emoji reactions using the reactions themselves
This commit is contained in:
parent
5f119e1ead
commit
3ca1c470a5
|
@ -94,6 +94,15 @@ Item {
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: modelData.currentUserReacted ? Style.current.currentUserTextColor : Style.current.textColor
|
color: modelData.currentUserReacted ? Style.current.currentUserTextColor : Style.current.textColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
onClicked: {
|
||||||
|
chatsModel.toggleEmojiReaction(messageId, modelData.emojiId)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue