Let a queued message be taken back into the composer
This commit is contained in:
@@ -237,7 +237,7 @@ struct Thumbnails: View {
|
||||
}
|
||||
}
|
||||
|
||||
private struct ThumbRemoveStyle: ButtonStyle {
|
||||
struct ThumbRemoveStyle: ButtonStyle {
|
||||
func makeBody(configuration: ButtonStyleConfiguration) -> some View {
|
||||
ThumbRemove(configuration: configuration)
|
||||
}
|
||||
@@ -371,6 +371,11 @@ struct ComposerView: View {
|
||||
store.drafts?.setComposerImages(draftKey, store.images.images(draftKey).count)
|
||||
reportDraft()
|
||||
}
|
||||
.onChange(of: store.drafts?.composerText(draftKey)) { _, new in
|
||||
if let new, new != text {
|
||||
text = new
|
||||
}
|
||||
}
|
||||
.onChange(of: store.images.images(draftKey).count) {
|
||||
store.drafts?.setComposerImages(draftKey, store.images.images(draftKey).count)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user