Clarify clear_profile_updates_for_user docstring

This commit is contained in:
Jason Robinson committed 2026-07-06 16:39:00 +03:00
1 parent f431951fdb
commit ac1bdfba17
1 file changed
+3 -1
+3 -1
View File
@@ -960,7 +960,9 @@ class ProfileWorkerStore(SQLBaseStore):
"""
Clear all the ProfileUpdateAction rows from the
`profile_updates_per_user` table from a particular user for
a list of target users.
a list of target users. This could be needed for example to ensure when
a user leaves the last shared room with another user, that we clear all
the old updates to ensure we don't leak any field updates to the other user.
This does not remove the stream ID row from `profile_updates` as it is
likely other per user rows may refer to it. Our automatic pruning of old