mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:56:42 -04:00
Send list of typing user IDs as 'user_ids' list within 'content', so that m.typing stream events have a toplevel content, for consistency with others
This commit is contained in:
parent
0b70023373
commit
b0bb1756a9
3 changed files with 21 additions and 7 deletions
|
@ -182,7 +182,9 @@ class TypingNotificationsTestCase(unittest.TestCase):
|
|||
[
|
||||
{"type": "m.typing",
|
||||
"room_id": self.room_id,
|
||||
"typing": [self.u_apple.to_string()]},
|
||||
"content": {
|
||||
"user_ids": [self.u_apple.to_string()],
|
||||
}},
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -242,7 +244,9 @@ class TypingNotificationsTestCase(unittest.TestCase):
|
|||
[
|
||||
{"type": "m.typing",
|
||||
"room_id": self.room_id,
|
||||
"typing": [self.u_onion.to_string()]},
|
||||
"content": {
|
||||
"user_ids": [self.u_onion.to_string()],
|
||||
}},
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -295,7 +299,9 @@ class TypingNotificationsTestCase(unittest.TestCase):
|
|||
[
|
||||
{"type": "m.typing",
|
||||
"room_id": self.room_id,
|
||||
"typing": []},
|
||||
"content": {
|
||||
"user_ids": [],
|
||||
}},
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -323,7 +329,9 @@ class TypingNotificationsTestCase(unittest.TestCase):
|
|||
[
|
||||
{"type": "m.typing",
|
||||
"room_id": self.room_id,
|
||||
"typing": [self.u_apple.to_string()]},
|
||||
"content": {
|
||||
"user_ids": [self.u_apple.to_string()],
|
||||
}},
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -339,6 +347,8 @@ class TypingNotificationsTestCase(unittest.TestCase):
|
|||
[
|
||||
{"type": "m.typing",
|
||||
"room_id": self.room_id,
|
||||
"typing": []},
|
||||
"content": {
|
||||
"user_ids": [],
|
||||
}},
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue