Commit eaeb31e9 authored by Philipp Hörist's avatar Philipp Hörist

Settings: Add set_contact_settings()

parent c6e8b299
......@@ -749,6 +749,14 @@ class _Settings:
self._commit_account_settings(account)
self._notify(value, setting, account, jid)
def set_contact_settings(self,
setting: str,
value: SETTING_TYPE) -> None:
for account in self._account_settings:
for jid in self._account_settings[account]['contact']:
self.set_contact_setting(account, jid, setting, value)
def set_soundevent_setting(self,
event_name: str,
setting: str,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment