mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Video call UI improvements
This commit is contained in:
@@ -201,9 +201,25 @@ public func chatListItemStrings(strings: PresentationStrings, nameDisplayOrder:
|
||||
if let discardReason = discardReason {
|
||||
switch discardReason {
|
||||
case .busy, .disconnect:
|
||||
messageText = strings.Notification_CallCanceled
|
||||
if isVideo {
|
||||
messageText = strings.Notification_VideoCallCanceled
|
||||
} else {
|
||||
messageText = strings.Notification_CallCanceled
|
||||
}
|
||||
case .missed:
|
||||
messageText = incoming ? strings.Notification_CallMissed : strings.Notification_CallCanceled
|
||||
if incoming {
|
||||
if isVideo {
|
||||
messageText = strings.Notification_VideoCallMissed
|
||||
} else {
|
||||
messageText = strings.Notification_CallMissed
|
||||
}
|
||||
} else {
|
||||
if isVideo {
|
||||
messageText = strings.Notification_VideoCallCanceled
|
||||
} else {
|
||||
messageText = strings.Notification_CallCanceled
|
||||
}
|
||||
}
|
||||
case .hangup:
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user