/room/${roomID}/messages requires "from" parameter, but should it? #1892
Labels
client-server
Client-Server API
improvement
A suggestion for a relatively simple improvement to the protocol
https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-rooms-roomid-messages
Synapse doesn't require the
from
parameter and functions well enough without it. I believe omitting from will get you the last N events in the room. This is useful for bridges/bots who wish to get messages they may have missed after being invited, who otherwise may have no existing token to use forfrom
.Can we drop this requirement and spec that a lack of
from
will pull the last N messages from the room?The text was updated successfully, but these errors were encountered: