mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Remove ”copy” action for location events (#1355)
* Hide ”copy” action for location events * Cleanup
This commit is contained in:
parent
ad1422ad6c
commit
cf39710891
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user