typo fixes. [skip ci]

This commit is contained in:
overtake 2019-07-18 19:02:50 +02:00
parent 72dd8f1151
commit f8aea99a11
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ func parseTelegramGroupOrChannel(chat: Api.Chat) -> Peer? {
if (flags & Int32(1 << 8)) != 0 {
var infoFlags = TelegramChannelGroupFlags()
if (flags & Int32(1 << 22)) != 0 {
infoFlags.insert(.isEnabledSlowMode)
infoFlags.insert(.slowModeEnabled)
}
info = .group(TelegramChannelGroupInfo(flags: infoFlags))
} else {

View File

@ -72,7 +72,7 @@ public struct TelegramChannelGroupFlags: OptionSet {
public init(rawValue: Int32) {
self.rawValue = rawValue
}
public static let isEnabledSlowMode = TelegramChannelGroupFlags(rawValue: 1 << 0)
public static let slowModeEnabled = TelegramChannelGroupFlags(rawValue: 1 << 0)
}
public struct TelegramChannelGroupInfo: Equatable {