mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various fixes
This commit is contained in:
parent
2757a49900
commit
3aeb5fafca
2 changed files with 7 additions and 8 deletions
|
|
@ -1045,8 +1045,9 @@ final class AvatarEditorScreenComponent: Component {
|
|||
state.updated(transition: .easeInOut(duration: 0.2))
|
||||
}
|
||||
},
|
||||
openColorPicker: { [weak state] in
|
||||
if let state {
|
||||
openColorPicker: { [weak self, weak state] in
|
||||
if let self, let state {
|
||||
self.endEditing(true)
|
||||
state.editingColor = true
|
||||
state.previousColor = state.selectedBackground
|
||||
state.previousCustomColor = state.customColor
|
||||
|
|
|
|||
|
|
@ -1041,13 +1041,11 @@ final class StoryItemSetContainerSendMessage {
|
|||
immediateExternalShare: false,
|
||||
forceTheme: defaultDarkColorPresentationTheme
|
||||
)
|
||||
if !component.slice.peer.isService {
|
||||
shareController.shareStory = { [weak view] in
|
||||
guard let view else {
|
||||
return
|
||||
}
|
||||
view.openStoryEditing(repost: true)
|
||||
shareController.shareStory = { [weak view] in
|
||||
guard let view else {
|
||||
return
|
||||
}
|
||||
view.openStoryEditing(repost: true)
|
||||
}
|
||||
shareController.completed = { [weak view] peerIds in
|
||||
guard let view, let component = view.component else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue