diff options
author | Erik Johnston <erikj@matrix.org> | 2023-09-14 12:46:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 12:46:30 +0100 |
commit | 954921736b88de25c775c519a206449e46b3bf07 (patch) | |
tree | d4e428b26c39659d9da44996d9d3db3bcf6f2ddd /synapse/server_notices | |
parent | Remove a reference cycle in background process (#16314) (diff) | |
download | synapse-954921736b88de25c775c519a206449e46b3bf07.tar.xz |
Refactor `get_user_by_id` (#16316)
Diffstat (limited to 'synapse/server_notices')
-rw-r--r-- | synapse/server_notices/consent_server_notices.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/server_notices/consent_server_notices.py b/synapse/server_notices/consent_server_notices.py index 94025ba41f..a879b6505e 100644 --- a/synapse/server_notices/consent_server_notices.py +++ b/synapse/server_notices/consent_server_notices.py @@ -79,15 +79,15 @@ class ConsentServerNotices: if u is None: return - if u["is_guest"] and not self._send_to_guests: + if u.is_guest and not self._send_to_guests: # don't send to guests return - if u["consent_version"] == self._current_consent_version: + if u.consent_version == self._current_consent_version: # user has already consented return - if u["consent_server_notice_sent"] == self._current_consent_version: + if u.consent_server_notice_sent == self._current_consent_version: # we've already sent a notice to the user return |