status-desktop/ui/imports/shared/views/chat/MessageAddReactionContextMenu.qml
Godfrain Jacques 8872877524
fix(@desktop/chat): Message reactions popup shouldn't revoke reactions (#13003)
fixes #10703

- Adding a reaction by going in add reaction and clicking R1 should have no effect (Currently the reaction R1 is removed which is not expected)
- Clicking on the R1 directly on the message should remove the reaction (I checked and this already works)
- Add a visual indicator in the add reaction popup on which emoji is already selected
2023-12-18 14:34:10 -08:00

22 lines
373 B
QML

import StatusQ.Popups 0.1
import shared.controls.chat 1.0
StatusMenu {
id: root
property alias reactionsModel: emojiRow.reactionsModel
signal toggleReaction(int emojiId)
width: emojiRow.width
MessageReactionsRow {
id: emojiRow
onToggleReaction: {
root.toggleReaction(emojiId)
root.close()
}
}
}