Skip to content

Commit

Permalink
addressee: Use stream ID for sender's default sending stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
eeshangarg authored and timabbott committed Jan 31, 2019
1 parent 998437c commit 0420eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zerver/lib/addressee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down

0 comments on commit 0420eca

Please sign in to comment.