[manual] Unify huddles and personals into private messages on the receive path

feedback-bot and zephyr_mirror will need to be updated and restarted
when this is deployed to prod.

(imported from commit fe2b524424c174bcb1b717a851a5d3815fda3f69)
This commit is contained in:
Zev Benjamin 2012-12-03 13:49:12 -05:00
parent 6d8519bc5d
commit b945113867
2 changed files with 11 additions and 12 deletions

View file

@ -18,7 +18,7 @@ staging_client = humbug.Client(
site="https://staging.humbughq.com")
def forward_message(message):
if message["type"] != "personal":
if message["type"] != "private" or len(message["recipient"]) != 2:
return
forwarded_message = {
"type": "stream",