mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Display a badge for messages decrypted using shared keys. (#4937)
* feat: Show info badge for messages decrypted with shared keys * tests: Add snapshots and tests for forwarder icon. * fix: Update `EventBasedTimelineItemProtocol.hasStatusIcon` * fix: Address review comments. * fix: Use two translations for key forwarded dialog content. * refactor: Rename `TimelineItemForwarder` to `TimelineItemKeyForwarder`. Additionally adds a `[weak self]` guard to `encryptionForwarder` alert handler. * tests: Add `previewLayout` directive to `encryptionForwarder` previews * refactor: Remove unused translations, use short-circuiting condition.
This commit is contained in:
@@ -138,6 +138,8 @@ struct TimelineViewState: BindableState {
|
||||
var linkMetadataProvider: LinkMetadataProviderProtocol?
|
||||
|
||||
var mapTilerConfiguration: MapTilerConfiguration
|
||||
|
||||
var enableKeyShareOnInvite: Bool
|
||||
|
||||
var bindings: TimelineViewStateBindings
|
||||
}
|
||||
@@ -196,6 +198,7 @@ enum TimelineAlertInfoType: Hashable {
|
||||
case pollEndConfirmation(String)
|
||||
case sendingFailed
|
||||
case encryptionAuthenticity(String)
|
||||
case encryptionForwarder(String)
|
||||
}
|
||||
|
||||
struct RoomMemberState {
|
||||
|
||||
Reference in New Issue
Block a user