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
The spec says the body key is required, but did not explicitly say it must be non-empty. In fact, some "required" fields in the spec are allowed to be empty strings.
It doesn't explicitly say so, but it pretty much implies it:
"The body key is text and MUST be used with every kind of msgtype as a fallback mechanism for when a client cannot render a message. This allows clients to display something even if it is just plain text."
There's nothing to display if body is empty, I therefore conclude that the field must not be empty.
This should probably be clarified in the spec to be more obvious.
Bridging
m.image
orm.sticker
events withbody: ""
fails.To reproduce
m.image
event withbody: ""
The text was updated successfully, but these errors were encountered: