mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
fix apply action
This commit is contained in:
parent
705a8b2d21
commit
86d12b5624
@ -3406,19 +3406,21 @@ func replayFinalState(
|
|||||||
transaction.removeHole(peerId: chatPeerId, threadId: nil, namespace: Namespaces.Message.Cloud, space: space, range: 1 ... id.id)
|
transaction.removeHole(peerId: chatPeerId, threadId: nil, namespace: Namespaces.Message.Cloud, space: space, range: 1 ... id.id)
|
||||||
}
|
}
|
||||||
case let .setChatWallpaper(wallpaper):
|
case let .setChatWallpaper(wallpaper):
|
||||||
transaction.updatePeerCachedData(peerIds: [message.id.peerId], update: { peerId, current in
|
if chatPeerId == accountPeerId {
|
||||||
var current = current
|
transaction.updatePeerCachedData(peerIds: [message.id.peerId], update: { peerId, current in
|
||||||
if current == nil {
|
var current = current
|
||||||
if peerId.namespace == Namespaces.Peer.CloudUser {
|
if current == nil {
|
||||||
current = CachedUserData()
|
if peerId.namespace == Namespaces.Peer.CloudUser {
|
||||||
}
|
current = CachedUserData()
|
||||||
}
|
}
|
||||||
if let cachedData = current as? CachedUserData {
|
}
|
||||||
return cachedData.withUpdatedWallpaper(wallpaper)
|
if let cachedData = current as? CachedUserData {
|
||||||
} else {
|
return cachedData.withUpdatedWallpaper(wallpaper)
|
||||||
return current
|
} else {
|
||||||
}
|
return current
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user