mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
fix(mobile): accept UUIDv5 push channel targets
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -56,7 +56,6 @@ public struct BuzzPushNavigationTarget: Codable, Equatable, Sendable {
|
||||
let bytes = Array(value.utf8)
|
||||
guard bytes.count == 36,
|
||||
bytes[8] == 45, bytes[13] == 45, bytes[18] == 45, bytes[23] == 45,
|
||||
bytes[14] == 52,
|
||||
[56, 57, 97, 98].contains(bytes[19])
|
||||
else { return false }
|
||||
return bytes.enumerated().allSatisfy { index, byte in
|
||||
|
||||
Reference in New Issue
Block a user