[skip ci]

This commit is contained in:
overtake
2020-06-24 17:35:17 +03:00
parent 863ccdf297
commit 8aef2604cb
2 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ public struct PeerStatusSettings: PostboxCoding, Equatable {
public static let canAddContact = Flags(rawValue: 1 << 4)
public static let addExceptionWhenAddingContact = Flags(rawValue: 1 << 5)
public static let canReportIrrelevantGeoLocation = Flags(rawValue: 1 << 6)
public static let autoArchived = Flags(rawValue: 1 << 7)
}
public var flags: PeerStatusSettings.Flags

View File

@@ -27,6 +27,9 @@ extension PeerStatusSettings {
if (flags & (1 << 5)) != 0 {
result.insert(.canReportIrrelevantGeoLocation)
}
if (flags & (1 << 7)) != 0 {
result.insert(.autoArchived)
}
self = PeerStatusSettings(flags: result, geoDistance: geoDistance)
}
}