diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index dc5e82252..605df3033 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -847,6 +847,8 @@ Tap the + to start adding people."; "event_formatter_call_connecting" = "Connecting…"; "event_formatter_call_ringing" = "Ringing…"; "event_formatter_call_has_ended" = "Call ended %@"; +"event_formatter_call_incoming_voice" = "Incoming voice call"; +"event_formatter_call_incoming_video" = "Incoming video call"; "event_formatter_call_active_voice" = "Active voice call"; "event_formatter_call_active_video" = "Active video call"; "event_formatter_call_you_declined" = "Call declined"; diff --git a/Riot/Generated/Strings.swift b/Riot/Generated/Strings.swift index 0935e0719..7dd87c16f 100644 --- a/Riot/Generated/Strings.swift +++ b/Riot/Generated/Strings.swift @@ -1278,6 +1278,14 @@ internal enum VectorL10n { internal static func eventFormatterCallHasEnded(_ p1: String) -> String { return VectorL10n.tr("Vector", "event_formatter_call_has_ended", p1) } + /// Incoming video call + internal static var eventFormatterCallIncomingVideo: String { + return VectorL10n.tr("Vector", "event_formatter_call_incoming_video") + } + /// Incoming voice call + internal static var eventFormatterCallIncomingVoice: String { + return VectorL10n.tr("Vector", "event_formatter_call_incoming_voice") + } /// Missed video call internal static var eventFormatterCallMissedVideo: String { return VectorL10n.tr("Vector", "event_formatter_call_missed_video") diff --git a/Riot/Modules/Room/Views/BubbleCells/Call/Direct/RoomDirectCallStatusBubbleCell.swift b/Riot/Modules/Room/Views/BubbleCells/Call/Direct/RoomDirectCallStatusBubbleCell.swift index 40c9866bb..8ed4af78f 100644 --- a/Riot/Modules/Room/Views/BubbleCells/Call/Direct/RoomDirectCallStatusBubbleCell.swift +++ b/Riot/Modules/Room/Views/BubbleCells/Call/Direct/RoomDirectCallStatusBubbleCell.swift @@ -207,7 +207,7 @@ class RoomDirectCallStatusBubbleCell: RoomBaseCallBubbleCell { case .ringing: if call.isIncoming { viewState = .ringing - statusText = nil + statusText = isVideoCall ? VectorL10n.eventFormatterCallIncomingVideo : VectorL10n.eventFormatterCallIncomingVoice } else { viewState = .active statusText = isVideoCall ? VectorL10n.eventFormatterCallActiveVideo : VectorL10n.eventFormatterCallActiveVoice