mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:31:27 +00:00
hide the forward action on live location shares (#6091)
Live location shares have no message event content, so forwarding always failed silently. Exclude them from `isForwardable` matching polls logic
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ nonisolated extension EventBasedTimelineItemProtocol {
|
||||
}
|
||||
|
||||
var isForwardable: Bool {
|
||||
isRemoteMessage && !(self is PollRoomTimelineItem)
|
||||
isRemoteMessage && !(self is PollRoomTimelineItem) && !(self is LiveLocationRoomTimelineItem)
|
||||
}
|
||||
|
||||
var isRemoteMessage: Bool {
|
||||
|
||||
Reference in New Issue
Block a user