1
0
Fork 0

fix: mention of unknown contacts from whatsapp

It may happen that a participant who hasn't shared
their "push name" with us is mentioned in a chat by
another participant.
Before this fix, this would result in replacing the mention
with an empty string.
This commit is contained in:
nicoco 2024-03-25 09:00:35 +01:00
parent 0c5a4787f8
commit 72ebb936d2
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class MUC(LegacyMUC[str, str, Participant, str]):
t,
participants=(
{
c.jid_username: c.name
c.jid_username: p.nickname
for c, p in self._participants_by_contacts.items()
}
| {self.session.user_phone: self.user_nick}