mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Remove current app name from device type name
This commit is contained in:
@@ -38,17 +38,15 @@ enum DeviceType {
|
||||
}
|
||||
|
||||
var name: String {
|
||||
let appName = AppInfo.current.displayName
|
||||
|
||||
switch self {
|
||||
case .desktop:
|
||||
return VectorL10n.deviceNameDesktop(appName)
|
||||
return VectorL10n.deviceTypeNameDesktop
|
||||
case .web:
|
||||
return VectorL10n.deviceNameWeb(appName)
|
||||
return VectorL10n.deviceTypeNameWeb
|
||||
case .mobile:
|
||||
return VectorL10n.deviceNameMobile(appName)
|
||||
return VectorL10n.deviceTypeNameMobile
|
||||
case .unknown:
|
||||
return VectorL10n.deviceNameUnknown
|
||||
return VectorL10n.deviceTypeNameUnknown
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user