Philipp Hörist pushed to branch master at gajim / gajim
Commits: 8b1977e7 by lovetox at 2022-01-22T20:00:22+01:00 Chat: Handle presence from bare jids correctly
- - - - -
1 changed file:
- gajim/gtk/controls/chat.py
Changes:
===================================== gajim/gtk/controls/chat.py ===================================== @@ -54,6 +54,7 @@ from gajim.common.const import KindConstant from gajim.common.const import PEPEventType from gajim.common.jingle_session import JingleSession +from gajim.common.modules.contacts import BareContact
from gajim.gui.call_widget import CallWidget from gajim.gui.controls.base import BaseControl @@ -746,6 +747,8 @@ def _on_presence_received(self, event: events.PresenceReceived) -> None: return
contact = self._client.get_module('Contacts').get_contact(event.fjid) + if isinstance(contact, BareContact): + return self.conversation_view.add_user_status(self.contact.name, contact.show.value, contact.status)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8b1977e76043f7e9942b0162a4c9ee186...