When leaving a room, `patch` message arrives *after* `remove`
Created by: trevorah
Leaving a room (DELETE /v1/rooms/:roomId/users/:userId
) means that I receive the following messages on the stream (ignoring deprecated messages):
/api/v1/user/:userId/rooms
:
{
"model": {
"id": "55b106cb0fc9f982beaab587"
},
"operation": "remove"
}
/api/v1/user/:userId/rooms
:
{
"model": {
"id": "55b106cb0fc9f982beaab587",
"mentions": 0,
"unreadItems": 0
},
"operation": "patch"
}
It's pretty annoying that I'm getting a patch for a resource that is not there, as I used to have code that would think that patches for missing resources is a memory burp and would assume that the client missed a create
or something.
/cc @suprememoocow
Edited by 🤖 GitLab Bot 🤖