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
…fication

Author reset
  • Loading branch information
hek4ek committed Dec 3, 2024
1 parent 3b57e4e commit fb0226f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Riot/Managers/Call/CallPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,12 @@ 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 displayNameNSString = NSString(string: displayNameUNLocalizedString)
let displayName = String(displayNameNSString)

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 fb0226f

Please sign in to comment.