Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin
2023-07-30 16:34:38 +02:00
43 changed files with 1119 additions and 326 deletions

View File

@@ -149,7 +149,7 @@ public struct CachedUserFlags: OptionSet {
}
public static let translationHidden = CachedUserFlags(rawValue: 1 << 0)
public static let isBlockedFromMyStories = CachedUserFlags(rawValue: 1 << 1)
public static let isBlockedFromStories = CachedUserFlags(rawValue: 1 << 1)
}
public final class EditableBotInfo: PostboxCoding, Equatable {

View File

@@ -107,6 +107,7 @@ public struct Namespaces {
public static let emojiSearchCategories: Int8 = 25
public static let cachedEmojiQueryResults: Int8 = 26
public static let cachedPeerStoryListHeads: Int8 = 27
public static let displayedStoryNotifications: Int8 = 28
}
public struct UnorderedItemList {

View File

@@ -35,8 +35,8 @@ func _internal_addSynchronizeViewStoriesOperation(peerId: PeerId, storyId: Int32
if let (topOperation, topLocalIndex) = topOperation {
if topOperation.storyId < storyId {
let _ = transaction.operationLogRemoveEntry(peerId: peerId, tag: tag, tagLocalIndex: topLocalIndex)
replace = true
}
replace = true
} else {
replace = true
}