Various fixes

This commit is contained in:
Ilya Laktyushin 2023-12-24 11:26:57 +04:00
parent 2757a49900
commit 3aeb5fafca
2 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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 {