mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Remove forward action for polls (#1973)
This commit is contained in:
@@ -598,7 +598,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if item.isRemoteMessage {
|
if item.isForwardable {
|
||||||
actions.append(.forward(itemID: itemID))
|
actions.append(.forward(itemID: itemID))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -34,7 +34,11 @@ extension EventBasedTimelineItemProtocol {
|
|||||||
var description: String {
|
var description: String {
|
||||||
"\(String(describing: Self.self)): id: \(id), timestamp: \(timestamp), isOutgoing: \(isOutgoing), properties: \(properties)"
|
"\(String(describing: Self.self)): id: \(id), timestamp: \(timestamp), isOutgoing: \(isOutgoing), properties: \(properties)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isForwardable: Bool {
|
||||||
|
isRemoteMessage && !(self is PollRoomTimelineItem)
|
||||||
|
}
|
||||||
|
|
||||||
var isRemoteMessage: Bool {
|
var isRemoteMessage: Bool {
|
||||||
id.eventID != nil
|
id.eventID != nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user