Add reaction toggles to macOS timeline context menu. (#2801)

Highlight reactions that have already been sent.

Share the default reactions.
This commit is contained in:
Doug
2024-05-07 16:50:54 +01:00
committed by GitHub
parent ef6315d329
commit 37001cb711
3 changed files with 62 additions and 7 deletions
@@ -257,6 +257,9 @@ class RoomScreenInteractionHandler {
actionsSubject.send(.displayReportContent(itemID: itemID, senderID: eventTimelineItem.sender.id))
case .react:
showEmojiPicker(for: itemID)
case .toggleReaction(let key):
guard let eventID = itemID.eventID else { return }
Task { await roomProxy.timeline.toggleReaction(key, to: eventID) }
case .endPoll(let pollStartID):
endPoll(pollStartID: pollStartID)
}