mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 12:44:58 -04:00
Re-implement unread counts (again) (#8059)
This commit is contained in:
parent
0d4f614fda
commit
5a1dd297c3
12 changed files with 457 additions and 122 deletions
|
@ -67,7 +67,11 @@ class EventPushActionsStoreTestCase(tests.unittest.TestCase):
|
|||
)
|
||||
self.assertEquals(
|
||||
counts,
|
||||
{"notify_count": noitf_count, "highlight_count": highlight_count},
|
||||
{
|
||||
"notify_count": noitf_count,
|
||||
"unread_count": 0, # Unread counts are tested in the sync tests.
|
||||
"highlight_count": highlight_count,
|
||||
},
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
@ -80,7 +84,7 @@ class EventPushActionsStoreTestCase(tests.unittest.TestCase):
|
|||
|
||||
yield defer.ensureDeferred(
|
||||
self.store.add_push_actions_to_staging(
|
||||
event.event_id, {user_id: action}
|
||||
event.event_id, {user_id: action}, False,
|
||||
)
|
||||
)
|
||||
yield defer.ensureDeferred(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue