[WIP] Saved messages

This commit is contained in:
Isaac
2023-12-25 22:58:09 +04:00
parent 4651c39083
commit 0e75f18f14
65 changed files with 934 additions and 369 deletions

View File

@@ -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()