API update

This commit is contained in:
Ali
2020-09-17 19:57:41 +04:00
parent e72208e35f
commit d8d442caad
7 changed files with 202 additions and 160 deletions

View File

@@ -1129,8 +1129,8 @@ private func finalStateWithUpdatesAndServerTime(postbox: Postbox, network: Netwo
}
return previous.withUpdatedPinnedMessageId(id == 0 ? nil : MessageId(peerId: groupPeerId, namespace: Namespaces.Message.Cloud, id: id))
})
case let .updateUserBlocked(userId, blocked):
let userPeerId = PeerId(namespace: Namespaces.Peer.CloudUser, id: userId)
case let .updatePeerBlocked(peerId, blocked):
let userPeerId = peerId.peerId
updatedState.updateCachedPeerData(userPeerId, { current in
let previous: CachedUserData
if let current = current as? CachedUserData {