diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index 415b5b52e4..2de3e06b2e 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -2392,6 +2392,9 @@ To enable access, tap Settings> Location and select Always"; // MARK: User sessions management +// Parameter is the application display name (e.g. "Element") +"user_sessions_default_session_display_name" = "%@ iOS"; + "user_sessions_overview_title" = "Sessions"; "user_sessions_overview_security_recommendations_section_title" = "Security recommendations"; diff --git a/Riot/Categories/UIDevice.swift b/Riot/Categories/UIDevice.swift index c3405e8edb..9fabb0f826 100644 --- a/Riot/Categories/UIDevice.swift +++ b/Riot/Categories/UIDevice.swift @@ -35,7 +35,7 @@ import UIKit } var initialDisplayName: String { - isPhone ? VectorL10n.loginMobileDevice : VectorL10n.loginTabletDevice + VectorL10n.userSessionsDefaultSessionDisplayName(AppInfo.current.displayName) } } diff --git a/Riot/Generated/Strings.swift b/Riot/Generated/Strings.swift index 0d4e4ac192..a996f13526 100644 --- a/Riot/Generated/Strings.swift +++ b/Riot/Generated/Strings.swift @@ -8743,6 +8743,10 @@ public class VectorL10n: NSObject { public static var userSessionViewDetails: String { return VectorL10n.tr("Vector", "user_session_view_details") } + /// %@ iOS + public static func userSessionsDefaultSessionDisplayName(_ p1: String) -> String { + return VectorL10n.tr("Vector", "user_sessions_default_session_display_name", p1) + } /// Current session public static var userSessionsOverviewCurrentSessionSectionTitle: String { return VectorL10n.tr("Vector", "user_sessions_overview_current_session_section_title") diff --git a/changelog.d/6828.change b/changelog.d/6828.change new file mode 100644 index 0000000000..9012fb1269 --- /dev/null +++ b/changelog.d/6828.change @@ -0,0 +1 @@ + Include app name in default session display name