mirror of https://github.com/zulip/zulip.git
e5885fa8e4
This function replaces part of compose_fade.would_receive_message(), which has a real janky interface of returning true, false, or undefined. We don't need to couple the semantics of compose fading to whether we help subscribe a mentioned user. They're mostly similar, but they will probably diverge for things like bots, and the coupling makes it difficult to do email -> user_id conversions. One thing that changes here is that we get the stream name from compose_state, instead of compose_fade.focused_recipient. The compose_fade code uses focused_recipient for kind of complicated reasons that don't concern us here. |
||
---|---|---|
.. | ||
casper_lib | ||
casper_tests | ||
node_tests | ||
zjsunit | ||
.eslintrc.json | ||
run-casper |