mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] Saved messages
This commit is contained in:
@@ -300,6 +300,10 @@ class MessageHistoryThreadIndexTable: Table {
|
||||
return result
|
||||
}
|
||||
|
||||
func getCount(peerId: PeerId) -> Int {
|
||||
return self.valueBox.count(self.table, start: self.lowerBound(peerId: peerId), end: self.upperBound(peerId: peerId))
|
||||
}
|
||||
|
||||
override func beforeCommit() {
|
||||
super.beforeCommit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user