mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
Having Addressee take care of setting stream_name to sender.default_sending_stream.name makes us able to have the invariant that stream_name is never None when the message type is 'stream', which will help for mypy, among other things. One thing to be aware of is that Addressee does do a little bit of validation work, and this adds yet another JsonableError exception. I don't view this as a bad thing, just something to know.
4.6 KiB
4.6 KiB