zephyr_mirror: Require zcrypt when mirroring to invite-only streams.

(imported from commit 1b88a8fc9bc26f2f9b1bb3f037093f85255feb17)
This commit is contained in:
Tim Abbott
2013-08-27 18:01:50 -04:00
parent ddd790e642
commit 77dbbe7f23
3 changed files with 44 additions and 20 deletions

View File

@@ -304,6 +304,8 @@ def do_send_messages(messages):
if message['stream'].is_public():
data['realm_id'] = message['stream'].realm.id
data['stream_name'] = message['stream'].name
if message['stream'].invite_only:
data['invite_only'] = True
tornado_callbacks.send_notification(data)
# Note that this does not preserve the order of message ids