api fixes

This commit is contained in:
Mike Renoir
2023-04-07 13:01:55 +04:00
parent e4e810ae29
commit a74dc88c79
3 changed files with 10 additions and 10 deletions

View File

@@ -3405,8 +3405,8 @@ func replayFinalState(
for (space, _) in holesAtHistoryStart {
transaction.removeHole(peerId: chatPeerId, threadId: nil, namespace: Namespaces.Message.Cloud, space: space, range: 1 ... id.id)
}
case let .setChatWallpaper(wallpaper):
if chatPeerId == accountPeerId {
case let .setChatWallpaper(wallpaper), let .setSameChatWallpaper(wallpaper):
if message.authorId == accountPeerId {
transaction.updatePeerCachedData(peerIds: [message.id.peerId], update: { peerId, current in
var current = current
if current == nil {