mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 20:38:41 +00:00
a30ae24d16
* 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.
32 lines
1.3 KiB
Swift
32 lines
1.3 KiB
Swift
//
|
|
// Copyright 2025 Element Creations Ltd.
|
|
// Copyright 2022-2025 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Properties of a matrix event that are common between all timeline items.
|
|
struct RoomTimelineItemProperties: Hashable {
|
|
// Information on the item this one replying to
|
|
var replyDetails: TimelineItemReplyDetails?
|
|
// Whether it's part of a thread or not
|
|
var isThreaded = false
|
|
// Information about the thread this message is the root of, if any
|
|
var threadSummary: TimelineItemThreadSummary?
|
|
/// Whether the item has been edited.
|
|
var isEdited = false
|
|
/// The aggregated reactions that have been sent for this item.
|
|
var reactions: [AggregatedReaction] = []
|
|
/// The delivery status for this item. If a sent message is echoed the value is nil.
|
|
var deliveryStatus: TimelineItemDeliveryStatus?
|
|
/// The read receipts of the item, ordered from newest to oldest.
|
|
var orderedReadReceipts: [ReadReceipt] = []
|
|
/// Authenticity warnings for item's sent in encrypted rooms.
|
|
var encryptionAuthenticity: EncryptionAuthenticity?
|
|
/// Information about the forwarder of the keys used to decrypt this message.
|
|
var encryptionForwarder: TimelineItemKeyForwarder?
|
|
}
|