Fixed a bug that prevented the mentions to be shown as plain text in the room list cell (#1835)

* fix a bug that made the room list not render mentions as plain text

* better naming
This commit is contained in:
Mauro
2023-09-29 16:49:20 +02:00
committed by GitHub
parent b7c46ceac3
commit 6bc5a440b2
7 changed files with 46 additions and 32 deletions
@@ -20,7 +20,8 @@ import UserNotifications
class NotificationServiceExtension: UNNotificationServiceExtension {
private let settings = NSESettings()
private let notificationContentBuilder = NotificationContentBuilder(messageEventStringBuilder: RoomMessageEventStringBuilder(attributedStringBuilder: AttributedStringBuilder(permalinkBaseURL: .homeDirectory, mentionBuilder: NSEMentionBuilder())))
private let notificationContentBuilder = NotificationContentBuilder(messageEventStringBuilder: RoomMessageEventStringBuilder(attributedStringBuilder: AttributedStringBuilder(permalinkBaseURL: .homeDirectory,
mentionBuilder: PlainMentionBuilder())))
private lazy var keychainController = KeychainController(service: .sessions,
accessGroup: InfoPlistReader.main.keychainAccessGroupIdentifier)
private var handler: ((UNNotificationContent) -> Void)?