mirror of https://github.com/zulip/zulip.git
Kill off dead code in Message.to_dict_uncached().
If this line of code were ever called, it would crash anyway, because it would be an unknown type, and Recipient.type_name() would raise a KeyError. (imported from commit db38c5f71fb2f0b044a832eb88e53fceb0d8a9cf)
This commit is contained in:
parent
dc077a708f
commit
005ad9c8e0
|
@ -544,8 +544,6 @@ class Message(models.Model):
|
|||
display_recipient = [recip, display_recipient[0]]
|
||||
elif recip['email'] > display_recipient[0]['email']:
|
||||
display_recipient = [display_recipient[0], recip]
|
||||
else:
|
||||
display_type = recipient.type_name()
|
||||
|
||||
obj = dict(
|
||||
id = self.id,
|
||||
|
|
Loading…
Reference in New Issue