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:
Ghazi Tozri
2026-09-01 15:23:20 +02:00
committed by GitHub
parent 53df7dd24d
commit b4a36ad465
3 changed files with 93 additions and 1 deletions
@@ -28,7 +28,7 @@ nonisolated extension EventBasedTimelineItemProtocol {
}
var isForwardable: Bool {
isRemoteMessage && !(self is PollRoomTimelineItem)
isRemoteMessage && !(self is PollRoomTimelineItem) && !(self is LiveLocationRoomTimelineItem)
}
var isRemoteMessage: Bool {