Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gajim/common/client.py4
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.