summary refs log tree commit diff
path: root/changelog.d/10033.bugfix
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-05-21 17:29:14 +0100
committerGitHub <noreply@github.com>2021-05-21 17:29:14 +0100
commit21bd230831022a69ce90f334e869edd151155067 (patch)
treed5bfe348ffeb62773ae92a560ba14fd415d77d15 /changelog.d/10033.bugfix
parentRemove unused properties from the SpaceSummaryHandler. (#10038) (diff)
downloadsynapse-21bd230831022a69ce90f334e869edd151155067.tar.xz
Add a test for update_presence (#10033)
https://github.com/matrix-org/synapse/issues/9962 uncovered that we accidentally removed all but one of the presence updates that we store in the database when persisting multiple updates. This could cause users' presence state to be stale.

The bug was fixed in #10014, and this PR just adds a test that failed on the old code, and was used to initially verify the bug.

The test attempts to insert some presence into the database in a batch using `PresenceStore.update_presence`, and then simply pulls it out again.
Diffstat (limited to 'changelog.d/10033.bugfix')
-rw-r--r--changelog.d/10033.bugfix1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10033.bugfix b/changelog.d/10033.bugfix
new file mode 100644
index 0000000000..587d839b8c
--- /dev/null
+++ b/changelog.d/10033.bugfix
@@ -0,0 +1 @@
+Fixed deletion of new presence stream states from database.
\ No newline at end of file