This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Empty sync response could be more empty #6579
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Comments
I also observe empty elements in the "rooms": {
"join": {
"!gGkYcJLTzcNrfERksd:matrix.org": {
"timeline": {
"events": [], HERE
"prev_batch": "s1222404111_757269739_4298397_414307685_257267759_1042954_39694860_20347120_70307",
"limited": false
},
"state": { HERE
"events": []
},
"account_data": { HERE
"events": []
},
"ephemeral": {
"events": [
{
"type": "m.receipt",
"content": {
"$QIzSpVAHOcFGWWrVc6eXDc0wMBrAj87qtszSyO2TsEU": {
"m.read": {
"@kindly:naido.org": {
"ts": 1578909070063
}
}
}
}
}
]
},
"unread_notifications": {
"notification_count": 27,
"highlight_count": 0
},
"summary": {} HERE
}
}
} |
4 tasks
7 tasks
#9919 fixes the first part, but it doesn't go into rooms.join yet. |
This breaks the current release of Element iOS fwiw, so we should wait for them to fix it and push out a release before doing this. c.f. element-hq/element-ios#4309 |
erikjohnston
added
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
and removed
z-enhancement
z-p5
(Deprecated Label)
labels
May 20, 2021
5 tasks
I think this is done now? |
Was there any PR to strip empty keys from inside room.join for example? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Currently an empty sync response (i.e. without any change) is like that (with formatting added):
According to the spec, only
next_batch
is required, so it could be acceptable to reduce it to:I do not know if it will solve the global climat changing problem, but if it's easy to fix, let's save some bytes!
The text was updated successfully, but these errors were encountered: