mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 09:32:46 +00:00
macos related
This commit is contained in:
parent
549299cfb1
commit
a4062c3c68
@ -969,7 +969,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1008,7 +1008,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1047,7 +1047,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1073,7 +1073,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1099,7 +1099,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1125,7 +1125,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
|
|
||||||
self.lowerOrAtAnchor.remove(at: index)
|
self.lowerOrAtAnchor.remove(at: index)
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1151,7 +1151,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
|
|
||||||
self.higherThanAnchor.remove(at: index)
|
self.higherThanAnchor.remove(at: index)
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
@ -1207,7 +1207,7 @@ struct OrderedHistoryViewEntries {
|
|||||||
self.higherThanAnchor.sort(by: { $0.index.id.id < $1.index.id.id })
|
self.higherThanAnchor.sort(by: { $0.index.id.id < $1.index.id.id })
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG && TARGET_OS_IOS
|
||||||
for entry in self.lowerOrAtAnchor {
|
for entry in self.lowerOrAtAnchor {
|
||||||
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
assert(self.anchor.isEqualOrGreater(than: entry.index, peerId: self.spacePeerId, namespace: self.spaceNamespace))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user