about summary refs log tree commit diff
path: root/src/view/com/composer/Composer.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-08-23 15:40:15 -0500
committerGitHub <noreply@github.com>2023-08-23 13:40:15 -0700
commitb6317d4ce7a6c27787b625fdde6e387e4368d5d6 (patch)
tree0aa2b6aa2a63897081d4623986e86ae595e291b0 /src/view/com/composer/Composer.tsx
parentacad8cb4555760ca858830a4b916d2bf80c1b7b4 (diff)
downloadvoidsky-b6317d4ce7a6c27787b625fdde6e387e4368d5d6.tar.zst
Improve handling of unselecting languanges in composer language menu (#1093)
* allow toggling off/on multiple from main composer lang menu

* fix dropdown styles for long labels

* udpate model to use new string field

* update language UI

* save langs to history on submit

* remove edit

* clean up use new fields

* default to deviceLocales

* fix default valu

* feedback

* use radio icon
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r--src/view/com/composer/Composer.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index cb66cc909..f6308c394 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -212,6 +212,7 @@ export const ComposePost = observer(function ComposePost({
     if (!replyTo) {
       store.me.mainFeed.onPostCreated()
     }
+    store.preferences.savePostLanguageToHistory()
     onPost?.()
     onClose()
     Toast.show(`Your ${replyTo ? 'reply' : 'post'} has been published`)