mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Cleanup
This commit is contained in:
parent
a627c66538
commit
1bbce49b86
@ -1165,37 +1165,37 @@ public class Account {
|
|||||||
let extractedExpr1: [Signal<AccountRunningImportantTasks, NoError>] = [
|
let extractedExpr1: [Signal<AccountRunningImportantTasks, NoError>] = [
|
||||||
managedSynchronizeChatInputStateOperations(postbox: self.postbox, network: self.network) |> map { inputStates in
|
managedSynchronizeChatInputStateOperations(postbox: self.postbox, network: self.network) |> map { inputStates in
|
||||||
if inputStates {
|
if inputStates {
|
||||||
print("inputStates: true")
|
//print("inputStates: true")
|
||||||
}
|
}
|
||||||
return inputStates ? AccountRunningImportantTasks.other : []
|
return inputStates ? AccountRunningImportantTasks.other : []
|
||||||
},
|
},
|
||||||
self.pendingMessageManager.hasPendingMessages |> map { hasPendingMessages in
|
self.pendingMessageManager.hasPendingMessages |> map { hasPendingMessages in
|
||||||
if !hasPendingMessages.isEmpty {
|
if !hasPendingMessages.isEmpty {
|
||||||
print("hasPendingMessages: true")
|
//print("hasPendingMessages: true")
|
||||||
}
|
}
|
||||||
return !hasPendingMessages.isEmpty ? AccountRunningImportantTasks.pendingMessages : []
|
return !hasPendingMessages.isEmpty ? AccountRunningImportantTasks.pendingMessages : []
|
||||||
},
|
},
|
||||||
(self.pendingStoryManager?.hasPending ?? .single(false)) |> map { hasPending in
|
(self.pendingStoryManager?.hasPending ?? .single(false)) |> map { hasPending in
|
||||||
if hasPending {
|
if hasPending {
|
||||||
print("hasPending: true")
|
//print("hasPending: true")
|
||||||
}
|
}
|
||||||
return hasPending ? AccountRunningImportantTasks.pendingMessages : []
|
return hasPending ? AccountRunningImportantTasks.pendingMessages : []
|
||||||
},
|
},
|
||||||
self.pendingUpdateMessageManager.updatingMessageMedia |> map { updatingMessageMedia in
|
self.pendingUpdateMessageManager.updatingMessageMedia |> map { updatingMessageMedia in
|
||||||
if !updatingMessageMedia.isEmpty {
|
if !updatingMessageMedia.isEmpty {
|
||||||
print("updatingMessageMedia: true")
|
//print("updatingMessageMedia: true")
|
||||||
}
|
}
|
||||||
return !updatingMessageMedia.isEmpty ? AccountRunningImportantTasks.pendingMessages : []
|
return !updatingMessageMedia.isEmpty ? AccountRunningImportantTasks.pendingMessages : []
|
||||||
},
|
},
|
||||||
self.pendingPeerMediaUploadManager.uploadingPeerMedia |> map { uploadingPeerMedia in
|
self.pendingPeerMediaUploadManager.uploadingPeerMedia |> map { uploadingPeerMedia in
|
||||||
if !uploadingPeerMedia.isEmpty {
|
if !uploadingPeerMedia.isEmpty {
|
||||||
print("uploadingPeerMedia: true")
|
//print("uploadingPeerMedia: true")
|
||||||
}
|
}
|
||||||
return !uploadingPeerMedia.isEmpty ? AccountRunningImportantTasks.pendingMessages : []
|
return !uploadingPeerMedia.isEmpty ? AccountRunningImportantTasks.pendingMessages : []
|
||||||
},
|
},
|
||||||
self.accountPresenceManager.isPerformingUpdate() |> map { presenceUpdate in
|
self.accountPresenceManager.isPerformingUpdate() |> map { presenceUpdate in
|
||||||
if presenceUpdate {
|
if presenceUpdate {
|
||||||
print("accountPresenceManager isPerformingUpdate: true")
|
//print("accountPresenceManager isPerformingUpdate: true")
|
||||||
//return []
|
//return []
|
||||||
}
|
}
|
||||||
return presenceUpdate ? AccountRunningImportantTasks.other : []
|
return presenceUpdate ? AccountRunningImportantTasks.other : []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user