Skip to content

Commit

Permalink
core: muc: user contact JID username as fallback when contact has no …
Browse files Browse the repository at this point in the history
…nick

instead of legacy_id, because this crashes if
it is not a string
  • Loading branch information
truenicoco committed Apr 13, 2023
1 parent cf8c747 commit 93450ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slidge/core/muc/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ async def get_participant_by_contact(
await self.session.contacts.ready
p = self._participants_by_contacts.get(c)
if p is None:
p = self.Participant(self, c.name or c.legacy_id, **kwargs)
p = self.Participant(self, c.name or c.jid_username, **kwargs)
p.contact = c
c.participants.add(p)
self.__store_participant(p)
Expand Down

0 comments on commit 93450ed

Please sign in to comment.