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:
parent
0c5a4787f8
commit
72ebb936d2
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue