mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add support for replying to events different than room messages
This commit is contained in:
committed by
Stefan Ceriu
parent
423604b18c
commit
61968cb3fb
@@ -539,8 +539,15 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
||||
|
||||
var actions: [TimelineItemMenuAction] = []
|
||||
|
||||
if let messageItem = item as? EventBasedMessageTimelineItemProtocol, messageItem.isRemoteMessage {
|
||||
actions.append(.reply(isThread: messageItem.isThreaded))
|
||||
if item.canBeRepliedTo {
|
||||
if let messageItem = item as? EventBasedMessageTimelineItemProtocol {
|
||||
actions.append(.reply(isThread: messageItem.isThreaded))
|
||||
} else {
|
||||
actions.append(.reply(isThread: false))
|
||||
}
|
||||
}
|
||||
|
||||
if item.isRemoteMessage {
|
||||
actions.append(.forward(itemID: itemID))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user