Make sure reactions go through the timeline controller. (#3209)

This commit is contained in:
Doug 2024-08-29 09:51:51 +01:00 committed by GitHub
parent e439689b65
commit 02f868c320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,8 +168,7 @@ class TimelineInteractionHandler {
case .react:
displayEmojiPicker(for: itemID)
case .toggleReaction(let key):
guard let eventID = itemID.eventID else { return }
Task { await roomProxy.timeline.toggleReaction(key, to: eventID) }
Task { await timelineController.toggleReaction(key, to: itemID) }
case .endPoll(let pollStartID):
endPoll(pollStartID: pollStartID)
case .pin: