mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Ignore OS version from web based sessions (PSG-826) (#6852)
* Ignore OS version from web based sessions * Add changelog
This commit is contained in:
@@ -132,11 +132,9 @@ enum UserAgentParser {
|
||||
if deviceInfoComponents[safe: 1]?.hasPrefix("Android") == true {
|
||||
deviceOS = deviceInfoComponents[safe: 1]
|
||||
} else if deviceInfoComponents.first == "Macintosh" {
|
||||
var osFull = deviceInfoComponents[safe: 1]
|
||||
osFull = osFull?.replacingOccurrences(of: "Intel ", with: "")
|
||||
osFull = osFull?.replacingOccurrences(of: "Mac OS X", with: "macOS")
|
||||
osFull = osFull?.replacingOccurrences(of: "_", with: ".")
|
||||
deviceOS = osFull
|
||||
deviceOS = "macOS"
|
||||
} else if deviceInfoComponents.first?.hasPrefix("Windows") == true {
|
||||
deviceOS = "Windows"
|
||||
} else {
|
||||
deviceOS = deviceInfoComponents.first
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user