Skip to content

/room/${roomID}/messages requires "from" parameter, but should it? #1892

@Half-Shot

Description

@Half-Shot

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 for from.

Can we drop this requirement and spec that a lack of from will pull the last N messages from the room?

Metadata

Metadata

Assignees

No one assigned

    Labels

    client-serverClient-Server APIimprovementA suggestion for a relatively simple improvement to the protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions