Fix rename

This commit is contained in:
Peter 2019-05-25 00:15:53 +02:00
parent 099484ae58
commit a54ca1601a

View File

@ -97,7 +97,7 @@ public func updateGroupDiscussionForChannel(network: Network, postbox: Postbox,
if let associatedId = previousGroupId ?? groupId {
transaction.updatePeerCachedData(peerIds: Set([associatedId]), update: { (_, current) -> CachedPeerData? in
let cachedData = (current as? CachedChannelData ?? CachedChannelData())
return cachedData.withUpdatedAssociatedPeerId(groupId == nil ? nil : channelId)
return cachedData.withUpdatedLinkedDiscussionPeerId(groupId == nil ? nil : channelId)
})
}
}