Skip to content

Commit

Permalink
Fix display of incoming call for group calls when receiving VOIP noti… (
Browse files Browse the repository at this point in the history
#7875)

* Fix display of incoming call for group calls when receiving VOIP notification

Author reset

* Update Riot/Managers/Call/CallPresenter.swift

Co-authored-by: Doug <[email protected]>

---------

Co-authored-by: Doug <[email protected]>
  • Loading branch information
hek4ek and pixlwave authored Dec 4, 2024
1 parent 3b57e4e commit 328af0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Riot/Managers/Call/CallPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,11 @@ class CallPresenter: NSObject {
return
}
let user = session.user(withUserId: event.sender)
let displayName = NSString.localizedUserNotificationString(forKey: "GROUP_CALL_FROM_USER",
arguments: [user?.displayname as Any])
let displayNameUNLocalizedString = NSString.localizedUserNotificationString(forKey: "GROUP_CALL_FROM_USER",
arguments: [user?.displayname as Any])

// will fix app crash when CXCallUpdate accesses the localizedCallerName property because list of allowed classes for com.apple.callkit.callsourcehost service contains only NSString
let displayName = NSString(string: displayNameUNLocalizedString) as String

MXLog.debug("[CallPresenter] processWidgetEvent: Report new incoming call with id: \(newUUID.uuidString)")

Expand Down
1 change: 1 addition & 0 deletions changelog.d/7858.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix display of incoming call for group calls when receiving VOIP notification.

0 comments on commit 328af0c

Please sign in to comment.