sahil839
04ef6ba63a
compose: Set wildcard_mention for message before further validation.
...
We do not show the warning while sending messages to announce
stream if there is a wildcard mention in the message (i.e.
when wildcard_mention != null)
There are two cases where we should ideally show the warning
but we don't-
- When there is no wildcard mention in the message and
wildcard_mention is set to undefined (initial value of
wildcard_mention).
This is because "wildcard_mention != null" returns true for
this case and thus the warning is not shown, assuming the
message to have wildcard mention.
- When previous message had a wildcard mention and now a message
is being sent with no wildcard mention.
This is because the condition "wildcard_mention != null" is
checked with the previous value of wildcard_mention and not
with the value according to current message content, and thus
the warning is not shown, assuming the message to have wildcard
mention.
This commit changes the code to set wildcard_mention from the
latest message content before performing other validations and
thus solves the problems described above.
2020-07-07 10:42:55 -07:00
..
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-06-30 10:16:33 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-06-28 14:11:27 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 17:32:28 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-06-03 16:39:12 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-07 10:42:55 -07:00
2020-07-06 15:53:56 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-05-26 23:33:40 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-06-16 11:11:16 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-06-13 15:35:39 -07:00
2020-06-20 16:26:25 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-06-18 09:08:46 -07:00
2020-07-03 16:55:51 -07:00
2020-05-27 17:57:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-07 10:39:44 -07:00
2020-06-07 13:57:28 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-07-06 15:36:33 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-06-18 12:55:59 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-06-09 22:08:31 -07:00
2020-07-03 16:55:51 -07:00
2020-06-18 12:55:59 -07:00
2020-06-21 01:09:01 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-06-18 12:55:59 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-06-11 11:05:06 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-06 15:53:56 -07:00
2020-07-03 16:55:50 -07:00
2020-05-26 23:33:40 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-06-17 17:47:49 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:48:06 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-06 18:37:35 -07:00
2020-07-03 16:55:50 -07:00
2020-07-06 15:30:01 -07:00
2020-07-06 15:43:41 -07:00
2020-06-22 13:39:47 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-06 15:43:41 -07:00
2020-07-03 16:55:50 -07:00
2020-07-06 11:27:43 -07:00
2020-07-03 16:55:50 -07:00
2020-07-06 15:53:56 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:53:39 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-06-18 12:55:59 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00
2020-06-16 12:12:21 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:53:39 -07:00
2020-05-27 17:57:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:50 -07:00
2020-07-03 16:55:51 -07:00
2020-07-03 16:55:51 -07:00