mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
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.
36 KiB
36 KiB