@room pill (#1834)

* all users mention pill + red higlight for own mentions

* more tests

* changelog

* removed useless if let
This commit is contained in:
Mauro
2023-09-29 15:40:31 +02:00
committed by GitHub
parent 1e842fd8cf
commit b7c46ceac3
19 changed files with 326 additions and 98 deletions
@@ -36,6 +36,11 @@ enum RoomAliasAttribute: AttributedStringKey {
public static var name = "MXRoomAliasAttribute"
}
enum AllUsersMentionAttribute: AttributedStringKey {
typealias Value = Bool
public static var name = "MXAllUsersMentionAttribute"
}
struct EventIDAttributeValue: Hashable {
let roomID: String
let eventID: String
@@ -55,6 +60,8 @@ extension AttributeScopes {
let roomAlias: RoomAliasAttribute
let eventID: EventIDAttribute
let allUsersMention: AllUsersMentionAttribute
let swiftUI: SwiftUIAttributes
let uiKit: UIKitAttributes
}