Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Aug 30, 2023
1 parent af408aa commit c1593f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/1519.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a bug that made the spring board crash when trying to mute notifications.

0 comments on commit c1593f2

Please sign in to comment.