Conference updates

This commit is contained in:
Isaac 2025-04-07 12:50:23 +04:00
parent c64c8ab240
commit 9e165ca150
13 changed files with 494 additions and 558 deletions

View file

@ -2165,7 +2165,14 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
let internalId = CallSessionManager.getStableIncomingUUID(peerId: fromPeerId.id._internalGetInt64Value(), messageId: messageId.id)
//TODO:localize
let displayTitle: "\(fromTitle)"
var displayTitle = "\(fromTitle)"
if let memberCountString = payloadJson["member_count"] as? String, let memberCount = Int(memberCountString) {
if memberCount == 1 {
displayTitle.append(" and 1 other")
} else {
displayTitle.append(" and \(memberCount) others")
}
}
callKitIntegration.reportIncomingCall(
uuid: internalId,