mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactoring
This commit is contained in:
@@ -197,7 +197,6 @@ private final class ContactSyncManagerImpl {
|
||||
disposable.add(
|
||||
(syncContactsOnce(network: self.network, postbox: self.postbox, accountPeerId: self.accountPeerId)
|
||||
|> mapToSignal { _ -> Signal<PushDeviceContactsResult, NoError> in
|
||||
return .complete()
|
||||
}
|
||||
|> then(importSignal)
|
||||
|> deliverOn(self.queue)
|
||||
@@ -250,8 +249,8 @@ private func pushDeviceContacts(postbox: Postbox, network: Network, importableCo
|
||||
if let updatedData = importableContacts[number] {
|
||||
if let value = value as? TelegramDeviceContactImportedData {
|
||||
switch value {
|
||||
case let .imported(imported):
|
||||
if imported.data != updatedData {
|
||||
case let .imported(data, _):
|
||||
if data != updatedData {
|
||||
updatedDataIdentifiers.insert(identifier)
|
||||
}
|
||||
case .retryLater:
|
||||
|
||||
Reference in New Issue
Block a user