Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 9ff4155

Browse files
authored
Properly invalidate get_thread_id cache. (#14163)
This was missed in 2b6d41e (#13824).
1 parent 2019b60 commit 9ff4155

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.d/14163.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support for thread-specific notifications & receipts ([MSC3771](https://github.com/matrix-org/matrix-spec-proposals/pull/3771) and [MSC3773](https://github.com/matrix-org/matrix-spec-proposals/pull/3773)).

synapse/storage/databases/main/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def _invalidate_caches_for_event(
244244
# redacted.
245245
self._attempt_to_invalidate_cache("get_relations_for_event", (redacts,))
246246
self._attempt_to_invalidate_cache("get_applicable_edit", (redacts,))
247+
self._attempt_to_invalidate_cache("get_thread_id", (redacts,))
247248

248249
if etype == EventTypes.Member:
249250
self._membership_stream_cache.entity_has_changed(state_key, stream_ordering)

0 commit comments

Comments
 (0)