mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Add even more logs [skip ci]
This commit is contained in:
@@ -9,6 +9,7 @@ final class UnsentMessageHistoryView {
|
||||
|
||||
func refreshDueToExternalTransaction(fetchUnsentMessageIds: () -> [MessageId]) -> Bool {
|
||||
let ids = Set(fetchUnsentMessageIds())
|
||||
postboxLog("UnsentMessageHistoryView: refreshDueToExternalTransaction: \(ids)")
|
||||
if ids != self.ids {
|
||||
self.ids = ids
|
||||
return true
|
||||
@@ -20,6 +21,7 @@ final class UnsentMessageHistoryView {
|
||||
func replay(_ operations: [IntermediateMessageHistoryUnsentOperation]) -> Bool {
|
||||
var updated = false
|
||||
for operation in operations {
|
||||
postboxLog("UnsentMessageHistoryView: operation: \(operation)")
|
||||
switch operation {
|
||||
case let .Insert(id):
|
||||
if !self.ids.contains(id) {
|
||||
|
||||
Reference in New Issue
Block a user