From 6364f68b3a5f77eb7be83fcac2f75167e25784ee Mon Sep 17 00:00:00 2001 From: Wesley Aptekar-Cassels Date: Tue, 1 Jun 2021 13:48:13 -0700 Subject: [PATCH] ComposeBox: Don't require caughtUp to send in stream narrow. See CZO [1] for some background on this. There are many reasons why the destination narrow might not be the caughtUp narrow in the stream view, and it's worse to prevent the user from sending with a cryptic error message than it is to allow them to send to a narrow they aren't fully caught up in. [1]: https://chat.zulip.org/#narrow/stream/48-mobile/topic/Failed.20to.20send.20on.20Android --- src/compose/ComposeBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose/ComposeBox.js b/src/compose/ComposeBox.js index ddfb39748af..4dc918ed0fe 100644 --- a/src/compose/ComposeBox.js +++ b/src/compose/ComposeBox.js @@ -323,7 +323,7 @@ class ComposeBox extends PureComponent { const { dispatch, narrow, caughtUp, _ } = this.props; const { message } = this.state; - if (!caughtUp.newer) { + if (!caughtUp.newer && !isStreamNarrow(this.props.narrow)) { showErrorAlert(_('Failed to send message')); return; }