mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 18:43:53 +01:00
Test that a mark_unread action updates the right counter when using a slave store
This commit is contained in:
parent
63d9a00bf1
commit
6b1fa3293d
1 changed files with 15 additions and 0 deletions
|
@ -191,6 +191,21 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
|
||||||
{"highlight_count": 1, "notify_count": 2, "unread_count": 2},
|
{"highlight_count": 1, "notify_count": 2, "unread_count": 2},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.persist(
|
||||||
|
type="m.room.message",
|
||||||
|
msgtype="m.text",
|
||||||
|
body="world",
|
||||||
|
push_actions=[
|
||||||
|
(USER_ID_2, ["org.matrix.msc2625.mark_unread"])
|
||||||
|
],
|
||||||
|
)
|
||||||
|
self.replicate()
|
||||||
|
self.check(
|
||||||
|
"get_unread_event_push_actions_by_room_for_user",
|
||||||
|
[ROOM_ID, USER_ID_2, event1.event_id],
|
||||||
|
{"highlight_count": 1, "notify_count": 2, "unread_count": 3},
|
||||||
|
)
|
||||||
|
|
||||||
def test_get_rooms_for_user_with_stream_ordering(self):
|
def test_get_rooms_for_user_with_stream_ordering(self):
|
||||||
"""Check that the cache on get_rooms_for_user_with_stream_ordering is invalidated
|
"""Check that the cache on get_rooms_for_user_with_stream_ordering is invalidated
|
||||||
by rows in the events stream
|
by rows in the events stream
|
||||||
|
|
Loading…
Reference in a new issue