mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Update the strings for unsupported calls. (#3502)
This commit is contained in:
@@ -512,6 +512,8 @@ internal enum L10n {
|
||||
internal static var commonUnlock: String { return L10n.tr("Localizable", "common_unlock") }
|
||||
/// Unmute
|
||||
internal static var commonUnmute: String { return L10n.tr("Localizable", "common_unmute") }
|
||||
/// Unsupported call
|
||||
internal static var commonUnsupportedCall: String { return L10n.tr("Localizable", "common_unsupported_call") }
|
||||
/// Unsupported event
|
||||
internal static var commonUnsupportedEvent: String { return L10n.tr("Localizable", "common_unsupported_event") }
|
||||
/// Username
|
||||
@@ -1926,6 +1928,8 @@ internal enum L10n {
|
||||
}
|
||||
/// This is the beginning of this conversation.
|
||||
internal static var screenRoomTimelineBeginningOfRoomNoName: String { return L10n.tr("Localizable", "screen_room_timeline_beginning_of_room_no_name") }
|
||||
/// Unsupported call. Ask if the caller can use to the new Element X app.
|
||||
internal static var screenRoomTimelineLegacyCall: String { return L10n.tr("Localizable", "screen_room_timeline_legacy_call") }
|
||||
/// Show less
|
||||
internal static var screenRoomTimelineLessReactions: String { return L10n.tr("Localizable", "screen_room_timeline_less_reactions") }
|
||||
/// Message copied
|
||||
|
||||
+9
-6
@@ -13,12 +13,15 @@ struct CallInviteRoomTimelineView: View {
|
||||
let timelineItem: CallInviteRoomTimelineItem
|
||||
|
||||
var body: some View {
|
||||
Label(title: { Text(L10n.commonCallInvite) },
|
||||
icon: { CompoundIcon(\.voiceCall, size: .medium, relativeTo: .compound.bodyMD) })
|
||||
.font(.compound.bodyMD)
|
||||
.foregroundColor(.compound.textSecondary)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.padding()
|
||||
Label {
|
||||
Text(L10n.screenRoomTimelineLegacyCall)
|
||||
} icon: {
|
||||
CompoundIcon(\.voiceCall, size: .medium, relativeTo: .compound.bodyMD)
|
||||
}
|
||||
.font(.compound.bodyMD)
|
||||
.foregroundColor(.compound.textSecondary)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ struct RoomEventStringBuilder {
|
||||
}
|
||||
return prefix(L10n.commonPollSummary(question), with: displayName)
|
||||
case .callInvite:
|
||||
return prefix(L10n.commonCallInvite, with: displayName)
|
||||
return prefix(L10n.commonUnsupportedCall, with: displayName)
|
||||
case .callNotify:
|
||||
return prefix(L10n.commonCallStarted, with: displayName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user