mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Remove ”copy” action for location events (#1355)
* Hide ”copy” action for location events * Cleanup
This commit is contained in:
@@ -411,7 +411,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
||||
actions.append(.edit)
|
||||
}
|
||||
|
||||
if item.isMessage {
|
||||
if item.isMessage, !item.isLocation {
|
||||
actions.append(.copy)
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,10 @@ extension EventBasedTimelineItemProtocol {
|
||||
self is EventBasedMessageTimelineItemProtocol
|
||||
}
|
||||
|
||||
var isLocation: Bool {
|
||||
self is LocationRoomTimelineItem
|
||||
}
|
||||
|
||||
var isRedacted: Bool {
|
||||
self is RedactedRoomTimelineItem
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user