mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Initialise UserPresenceCache instances to always contain a 'presence' key
This commit is contained in:
parent
4eada9a908
commit
03dc63f6c8
2 changed files with 10 additions and 6 deletions
|
@ -1200,7 +1200,10 @@ class PresencePollingTestCase(unittest.TestCase):
|
|||
path=ANY,
|
||||
data=_expect_edu("remote", "m.presence",
|
||||
content={
|
||||
"push": [ {"user_id": "@clementine:test" }],
|
||||
"push": [ {
|
||||
"user_id": "@clementine:test",
|
||||
"presence": OFFLINE,
|
||||
}],
|
||||
},
|
||||
),
|
||||
json_data_callback=ANY,
|
||||
|
@ -1229,7 +1232,10 @@ class PresencePollingTestCase(unittest.TestCase):
|
|||
path=ANY,
|
||||
data=_expect_edu("remote", "m.presence",
|
||||
content={
|
||||
"push": [ {"user_id": "@fig:test" }],
|
||||
"push": [ {
|
||||
"user_id": "@fig:test",
|
||||
"presence": OFFLINE,
|
||||
}],
|
||||
},
|
||||
),
|
||||
json_data_callback=ANY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue