You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the spec defines the messages field in the JSON body of requests to PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId} as not required. It's not really clear what the homeserver should do when messages is not provided.
Indeed, there isn't anything for the homeserver to do when messages is not provided, and thus not including message is a bit pointless.
I feel that we should mark messages as a required field. It doesn't really make sense to define a default message.
Note that Synapse currently Internal Server Errors when messages is not provided, though this is fixed by matrix-org/synapse#8975.
The text was updated successfully, but these errors were encountered:
I'm pretty sure it's just a documentation error and the field is supposed to be required.
turt2live
added
spec-bug
Something which is in the spec, but is wrong
and removed
wart
A point where the protocol is inconsistent or inelegant
labels
Dec 29, 2020
From reading both, I believe that it was intended for messages to always be provided. I don't see any discussion or a clear reason as to why it should have been optional.
Currently the spec defines the
messages
field in the JSON body of requests toPUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId}
as not required. It's not really clear what the homeserver should do whenmessages
is not provided.Indeed, there isn't anything for the homeserver to do when
messages
is not provided, and thus not includingmessage
is a bit pointless.I feel that we should mark
messages
as a required field. It doesn't really make sense to define a default message.Note that Synapse currently Internal Server Errors when
messages
is not provided, though this is fixed by matrix-org/synapse#8975.The text was updated successfully, but these errors were encountered: