mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
We now have a MentionData class that encapsulates the users who are possibly mentioned in a message. Not that the rendering code may not keep all the mentions, since things like backticks will suppress the mention. We populate this now in do_send_messages, so that we can use the info earlier in the message-sending process. This info now gets passed down the call stack as an optional parameter. Note that bugdown.convert() still populates the data when its callers decline to pass in a MentionData object. This is mostly a preparatory commit, as we don't take advantage of the data yet in do_send_messages.
28 KiB
28 KiB