Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
653bd693 by wurstsalat at 2025-08-16T19:28:23+02:00
fix: Handle contact requests with 'ignore_unknown_contacts' setting

Fixes #11933

- - - - -


1 changed file:

- gajim/common/modules/presence.py


Changes:

=====================================
gajim/common/modules/presence.py
=====================================
@@ -170,6 +170,13 @@ def _subscribe_received(self,
             self.subscribed(jid)
             return
 
+        ignore_unknown_contacts = app.settings.get_account_setting(
+            self._account, 'ignore_unknown_contacts'
+        )
+        if ignore_unknown_contacts:
+            self._log.info('Contact request ignored due to 
ignore_unknown_contacts')
+            return
+
         status = (properties.status or
                   _('I would like to add you to my roster.'))
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/653bd693fddf6eb6b4f4aed52348e7000f95030d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/653bd693fddf6eb6b4f4aed52348e7000f95030d
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to