diff options
-rw-r--r-- | gajim/common/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gajim/common/client.py b/gajim/common/client.py index 3a1cb2932..e4287f9c6 100644 --- a/gajim/common/client.py +++ b/gajim/common/client.py @@ -330,6 +330,10 @@ class Client(Observable): app.ged.raise_event(StanzaReceived(account=self._account, stanza=stanza)) + def is_own_jid(self, jid: JID | str) -> bool: + jid = self.get_own_jid() + return jid.bare_match(jid) + def get_own_jid(self) -> JID: ''' Return the last full JID we received on a bind event. |