mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
Added analytics for message pinning (#3284)
This commit is contained in:
@@ -163,12 +163,17 @@ class TimelineInteractionHandler {
|
||||
case .endPoll(let pollStartID):
|
||||
endPoll(pollStartID: pollStartID)
|
||||
case .pin:
|
||||
analyticsService.trackPinUnpinEvent(.init(from: timelineController.timelineKind == .pinned ? .MessagePinningList : .Timeline,
|
||||
kind: .Pin))
|
||||
guard let eventID = itemID.eventID else { return }
|
||||
Task { await timelineController.pin(eventID: eventID) }
|
||||
case .unpin:
|
||||
analyticsService.trackPinUnpinEvent(.init(from: timelineController.timelineKind == .pinned ? .MessagePinningList : .Timeline,
|
||||
kind: .Unpin))
|
||||
guard let eventID = itemID.eventID else { return }
|
||||
Task { await timelineController.unpin(eventID: eventID) }
|
||||
case .viewInRoomTimeline:
|
||||
analyticsService.trackInteraction(name: .PinnedMessageListViewTimeline)
|
||||
guard let eventID = itemID.eventID else { return }
|
||||
actionsSubject.send(.viewInRoomTimeline(eventID: eventID))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user