Skip to content

Commit

Permalink
cross-realm non-personal messages are not is_personal
Browse files Browse the repository at this point in the history
  • Loading branch information
asedeno committed Jul 2, 2021
1 parent 86b3a05 commit e2457f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roost_backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _d(octets: bytes) -> str:
msg.sender = _d(notice.sender)
msg.recipient = _d(notice.recipient)

msg.is_personal = bool(msg.recipient)
msg.is_personal = bool(msg.recipient and not msg.recipient.startswith('@'))
msg.is_outgoing = is_outgoing
if msg.is_personal:
msg.conversation = msg.recipient if is_outgoing else msg.sender
Expand Down

0 comments on commit e2457f4

Please sign in to comment.