From 02f868c320bff795ea3369ba58be781745daf960 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:51:51 +0100 Subject: [PATCH] Make sure reactions go through the timeline controller. (#3209) --- .../Sources/Screens/Timeline/TimelineInteractionHandler.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ElementX/Sources/Screens/Timeline/TimelineInteractionHandler.swift b/ElementX/Sources/Screens/Timeline/TimelineInteractionHandler.swift index 0a2595f65..733bb3d91 100644 --- a/ElementX/Sources/Screens/Timeline/TimelineInteractionHandler.swift +++ b/ElementX/Sources/Screens/Timeline/TimelineInteractionHandler.swift @@ -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: