mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fixes #1338 - Add copy permalink option for messages that failed decryption
This commit is contained in:
committed by
Stefan Ceriu
parent
b75fe5970b
commit
1279c11efc
@@ -503,10 +503,15 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
|||||||
|
|
||||||
var debugActions: [TimelineItemMenuAction] = appSettings.canShowDeveloperOptions ? [.viewSource] : []
|
var debugActions: [TimelineItemMenuAction] = appSettings.canShowDeveloperOptions ? [.viewSource] : []
|
||||||
|
|
||||||
if let encryptedItem = timelineItem as? EncryptedRoomTimelineItem,
|
if let encryptedItem = timelineItem as? EncryptedRoomTimelineItem {
|
||||||
case let .megolmV1AesSha2(sessionID) = encryptedItem.encryptionType {
|
switch encryptedItem.encryptionType {
|
||||||
debugActions.append(.retryDecryption(sessionID: sessionID))
|
case .megolmV1AesSha2(let sessionID):
|
||||||
return .init(actions: [], debugActions: debugActions)
|
debugActions.append(.retryDecryption(sessionID: sessionID))
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
return .init(actions: [.copyPermalink], debugActions: debugActions)
|
||||||
}
|
}
|
||||||
|
|
||||||
var actions: [TimelineItemMenuAction] = []
|
var actions: [TimelineItemMenuAction] = []
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Add copy permalink option for messages that failed decryption
|
||||||
Reference in New Issue
Block a user