File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,14 @@ class MessagesPresenter @AssistedInject constructor(
280
280
TimelineItemAction .Forward -> handleForwardAction(targetEvent)
281
281
TimelineItemAction .ReportContent -> handleReportAction(targetEvent)
282
282
TimelineItemAction .EndPoll -> handleEndPollAction(targetEvent, timelineState)
283
- TimelineItemAction .Pin -> Timber .d(" Pin action not implemented" )
283
+ TimelineItemAction .Pin -> handlePinAction(targetEvent)
284
+ }
285
+ }
286
+
287
+ private suspend fun handlePinAction (targetEvent : TimelineItem .Event ) {
288
+ if (targetEvent.eventId == null ) return
289
+ timelineController.invokeOnCurrentTimeline {
290
+ pinEvent(targetEvent.eventId)
284
291
}
285
292
}
286
293
You can’t perform that action at this time.
0 commit comments