mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-01 10:50:51 +00:00
Merge commit 'a4bf4b7a3b71269c9a321aa1d0cc5f9c1502d110'
This commit is contained in:
@@ -93,7 +93,7 @@ final class ApplyColorFooterItemNode: ItemListControllerFooterItemNode {
|
||||
}
|
||||
|
||||
if self.inProgress != self.item.inProgress {
|
||||
self.inProgress = true
|
||||
self.inProgress = self.item.inProgress
|
||||
|
||||
if self.item.inProgress {
|
||||
self.buttonNode.transitionToProgress()
|
||||
|
||||
@@ -589,9 +589,13 @@ public func PeerNameColorScreen(
|
||||
return
|
||||
}
|
||||
let state = stateValue.with { $0 }
|
||||
if state.updatedNameColor == nil && state.updatedBackgroundEmojiId == nil {
|
||||
dismissImpl?()
|
||||
return
|
||||
}
|
||||
|
||||
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
|
||||
|
||||
|
||||
let nameColor = state.updatedNameColor ?? peer.nameColor
|
||||
let backgroundEmojiId = state.updatedBackgroundEmojiId ?? peer.backgroundEmojiId
|
||||
let colors = context.peerNameColors.get(nameColor ?? .blue, dark: presentationData.theme.overallDarkAppearance)
|
||||
|
||||
Reference in New Issue
Block a user