mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 13:05:21 +00:00
COVIDSafe code from version 2.2 (#42)
This commit is contained in:
parent
9e6e4604ef
commit
f14aa60482
67 changed files with 3645 additions and 464 deletions
|
@ -284,9 +284,10 @@ public extension PayloadData {
|
|||
let message = decodedPayload.msg
|
||||
return String(message.suffix(25))
|
||||
} catch {
|
||||
let startIndex = count >= 3 ? 3 : 0
|
||||
let endIndex = count >= 3 ? count-3 : 0
|
||||
return String(subdata(in: startIndex..<endIndex).base64EncodedString().prefix(6))
|
||||
guard count > 0 else {
|
||||
return ""
|
||||
}
|
||||
return String(self.base64EncodedString().prefix(6))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue