Skip to content

Commit c813a76

Browse files
committed
Fix
1 parent 74b761c commit c813a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

submodules/TelegramCore/Sources/TelegramEngine/Contacts/ImportContact.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func _internal_importContact(account: Account, firstName: String, lastName: Stri
3636
transaction.replaceContactPeerIds(peerIds)
3737
}
3838
if !noteText.isEmpty {
39-
transaction.updatePeerCachedData(peerIds: peerIds, update: { peerId, cachedData in
39+
transaction.updatePeerCachedData(peerIds: [peerId], update: { peerId, cachedData in
4040
(cachedData as? CachedUserData)?.withUpdatedNote(.init(text: noteText, entities: noteEntities))
4141
})
4242
}
@@ -99,7 +99,7 @@ func _internal_addContactInteractively(account: Account, peerId: PeerId, firstNa
9999
transaction.replaceContactPeerIds(peerIds)
100100
}
101101
if !noteText.isEmpty {
102-
transaction.updatePeerCachedData(peerIds: peerIds, update: { peerId, cachedData in
102+
transaction.updatePeerCachedData(peerIds: [peerId], update: { peerId, cachedData in
103103
(cachedData as? CachedUserData)?.withUpdatedNote(.init(text: noteText, entities: noteEntities))
104104
})
105105
}

0 commit comments

Comments
 (0)