mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update the SDK.
This commit is contained in:
@@ -178,12 +178,8 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
|
||||
func toggleReaction(_ reaction: String, to itemID: TimelineItemIdentifier) async {
|
||||
MXLog.info("Toggle reaction in \(roomID)")
|
||||
guard let eventID = itemID.eventID else {
|
||||
MXLog.error("Failed toggling reaction: missing eventID")
|
||||
return
|
||||
}
|
||||
|
||||
switch await activeTimeline.toggleReaction(reaction, to: eventID) {
|
||||
|
||||
switch await activeTimeline.toggleReaction(reaction, to: itemID) {
|
||||
case .success:
|
||||
MXLog.info("Finished toggling reaction")
|
||||
case .failure(let error):
|
||||
|
||||
Reference in New Issue
Block a user