fix setMessageInputEvent being called initially

This commit is contained in:
hippoz 2022-09-02 12:35:33 +03:00
parent 5072ea5ab5
commit 6a962f2fba
Signed by: hippoz
GPG key ID: 7C52899193467641

View file

@ -102,7 +102,7 @@
unsubscribers.push(selectedChannel.subscribe(focusTextarea));
// Handle the setMessageInput event
unsubscribers.push(setMessageInputEvent.subscribe((value) => {
unsubscribers.push(setMessageInputEvent.watch((value) => {
messageInput = value;
focusTextarea();
}));