This commit is contained in:
Mauro Romito
2023-08-30 18:45:55 +02:00
committed by Mauro
parent af408aacbc
commit c1593f28c9
2 changed files with 3 additions and 1 deletions
@@ -179,7 +179,8 @@ extension NotificationItemProxyProtocol {
notification.eventID = eventID
notification.sound = isNoisy ? UNNotificationSound(named: UNNotificationSoundName(rawValue: "message.caf")) : nil
// So that the UI groups notification that are received for the same room but also for the same user
notification.threadIdentifier = "\(receiverID)\(roomID)"
// Removing the @ fixes an iOS bug where the notification crashes if the mute button is tapped
notification.threadIdentifier = "\(receiverID)\(roomID)".replacingOccurrences(of: "@", with: "")
return notification
}