From 0420ecadeb3632b853510c35e8c557fcf204827f Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Tue, 29 Jan 2019 23:24:28 -0330 Subject: [PATCH] addressee: Use stream ID for sender's default sending stream. --- zerver/lib/addressee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/addressee.py b/zerver/lib/addressee.py index 46c8a80598169..5352234e0b043 100644 --- a/zerver/lib/addressee.py +++ b/zerver/lib/addressee.py @@ -123,7 +123,7 @@ def legacy_build(sender: UserProfile, # callpath). if sender.default_sending_stream: # Use the users default stream - stream_name_or_id = sender.default_sending_stream.name + stream_name_or_id = sender.default_sending_stream.id else: raise JsonableError(_('Missing stream'))