mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
[skip ci]
This commit is contained in:
parent
863ccdf297
commit
8aef2604cb
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue