diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js --- a/native/chat/chat-input-bar.react.js +++ b/native/chat/chat-input-bar.react.js @@ -930,7 +930,7 @@ React.useEffect(() => { if (isActive && !prevIsActiveRef.current) { addEditInputMessageListener(); - } else if (!isActive && prevIsActiveRef) { + } else if (!isActive && prevIsActiveRef.current) { removeEditInputMessageListener(); } prevIsActiveRef.current = isActive;