Commit 0b7aad2
committed
client-api: Account for knocked rooms in Rooms::is_empty
The `rooms` field is skipped at serialization when `Rooms::is_empty`
returns true. The method omitted `knock`, so a sync whose only updates
are knocked rooms dropped the entire `rooms` object, leaving the
knocker's own knock absent from /sync.
Signed-off-by: Jason Volk <jason@zemos.net>1 parent d4d7b97 commit 0b7aad2
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| |||
0 commit comments