mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-06-05 17:18:49 -04:00
Add timestamp to user's consent (#13741)
Co-authored-by: reivilibre <olivier@librepush.net>
This commit is contained in:
parent
906cead9ca
commit
f799eac7ea
7 changed files with 52 additions and 8 deletions
|
@ -175,6 +175,7 @@ class RegistrationWorkerStore(CacheInvalidationWorkerStore):
|
|||
"is_guest",
|
||||
"admin",
|
||||
"consent_version",
|
||||
"consent_ts",
|
||||
"consent_server_notice_sent",
|
||||
"appservice_id",
|
||||
"creation_ts",
|
||||
|
@ -2227,7 +2228,10 @@ class RegistrationStore(StatsStore, RegistrationBackgroundUpdateStore):
|
|||
txn,
|
||||
table="users",
|
||||
keyvalues={"name": user_id},
|
||||
updatevalues={"consent_version": consent_version},
|
||||
updatevalues={
|
||||
"consent_version": consent_version,
|
||||
"consent_ts": self._clock.time_msec(),
|
||||
},
|
||||
)
|
||||
self._invalidate_cache_and_stream(txn, self.get_user_by_id, (user_id,))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue