Fix Ctrl-up when changing the value on different inputs (#28062)

This commit is contained in:
Daniel Espino García
2024-08-28 10:58:51 +02:00
committed by GitHub
parent 5ff680d20d
commit 5030e2cdb2
@@ -371,6 +371,10 @@ const useKeyHandler = (
}
}, [draft.message]);
useEffect(() => {
messageHistoryIndex.current = messageHistory.length;
}, [messageHistory]);
// Update last channel switch at
useEffect(() => {
lastChannelSwitchAt.current = Date.now();