Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
8b1977e7
by lovetox at 2022-01-22T20:00:22+01:00
1 changed file:
Changes:
| ... | ... | @@ -54,6 +54,7 @@ |
| 54 | 54 |
from gajim.common.const import KindConstant
|
| 55 | 55 |
from gajim.common.const import PEPEventType
|
| 56 | 56 |
from gajim.common.jingle_session import JingleSession
|
| 57 |
+from gajim.common.modules.contacts import BareContact
|
|
| 57 | 58 |
|
| 58 | 59 |
from gajim.gui.call_widget import CallWidget
|
| 59 | 60 |
from gajim.gui.controls.base import BaseControl
|
| ... | ... | @@ -746,6 +747,8 @@ def _on_presence_received(self, event: events.PresenceReceived) -> None: |
| 746 | 747 |
return
|
| 747 | 748 |
|
| 748 | 749 |
contact = self._client.get_module('Contacts').get_contact(event.fjid)
|
| 750 |
+ if isinstance(contact, BareContact):
|
|
| 751 |
+ return
|
|
| 749 | 752 |
self.conversation_view.add_user_status(self.contact.name,
|
| 750 | 753 |
contact.show.value,
|
| 751 | 754 |
contact.status)
|