mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-19 23:21:01 +00:00
Fix rename
This commit is contained in:
parent
099484ae58
commit
a54ca1601a
@ -97,7 +97,7 @@ public func updateGroupDiscussionForChannel(network: Network, postbox: Postbox,
|
|||||||
if let associatedId = previousGroupId ?? groupId {
|
if let associatedId = previousGroupId ?? groupId {
|
||||||
transaction.updatePeerCachedData(peerIds: Set([associatedId]), update: { (_, current) -> CachedPeerData? in
|
transaction.updatePeerCachedData(peerIds: Set([associatedId]), update: { (_, current) -> CachedPeerData? in
|
||||||
let cachedData = (current as? CachedChannelData ?? CachedChannelData())
|
let cachedData = (current as? CachedChannelData ?? CachedChannelData())
|
||||||
return cachedData.withUpdatedAssociatedPeerId(groupId == nil ? nil : channelId)
|
return cachedData.withUpdatedLinkedDiscussionPeerId(groupId == nil ? nil : channelId)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user