mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +00:00
compose: Distinguish get_message_type() from composing().
We now only call compose_state.composing() in a boolean context, where we simply care whether or not the compose box is open. The function now also returns true/false. Callers who need to know the actual message type (e.g. "stream" or "private") now call compose_state.get_message_type().
This commit is contained in:
@@ -39,7 +39,7 @@ function is_valid_conversation(recipient) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (compose_state.composing() !== 'private') {
|
||||
if (compose_state.get_message_type() !== 'private') {
|
||||
// We only use typing indicators in PMs for now.
|
||||
// There was originally some support for having
|
||||
// typing indicators related to stream conversations,
|
||||
|
||||
Reference in New Issue
Block a user