mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Disable reply actions for local echoes
This commit is contained in:
parent
fe656450ef
commit
501c3aed23
@ -517,8 +517,8 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
||||
|
||||
var actions: [TimelineItemMenuAction] = []
|
||||
|
||||
if let messageitem = item as? EventBasedMessageTimelineItemProtocol {
|
||||
actions.append(.reply(isThread: messageitem.isThreaded))
|
||||
if let messageItem = item as? EventBasedMessageTimelineItemProtocol, messageItem.isRemoteMessage {
|
||||
actions.append(.reply(isThread: messageItem.isThreaded))
|
||||
actions.append(.forward(itemID: itemID))
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,10 @@ extension EventBasedTimelineItemProtocol {
|
||||
var description: String {
|
||||
"\(String(describing: Self.self)): id: \(id), timestamp: \(timestamp), isOutgoing: \(isOutgoing), properties: \(properties)"
|
||||
}
|
||||
|
||||
var isRemoteMessage: Bool {
|
||||
id.eventID != nil
|
||||
}
|
||||
|
||||
var hasFailedToSend: Bool {
|
||||
properties.deliveryStatus == .sendingFailed
|
||||
|
Loading…
x
Reference in New Issue
Block a user