mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
zephyr_mirror: Fix detection of personals.
(imported from commit 1fc9050bad36dc15e76f65bdb6532e3e7e601a40)
This commit is contained in:
@@ -462,7 +462,7 @@ def forward_to_zephyr(message):
|
||||
zephyr_class = "message"
|
||||
zwrite_args.extend(["-c", zephyr_class, "-i", instance])
|
||||
elif message['type'] == "private":
|
||||
if len(message['display_recipient']) == 1:
|
||||
if len(message['display_recipient']) <= 2:
|
||||
recipient = to_zephyr_username(message["display_recipient"][0]["email"])
|
||||
zwrite_args.extend([recipient])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user