Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gappy syncs support #336

Open
KitsuneRal opened this issue Aug 9, 2023 · 0 comments
Open

Gappy syncs support #336

KitsuneRal opened this issue Aug 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@KitsuneRal
Copy link

Is your feature request related to a problem? Please describe.
The current MatrixClient code is not suitable for the case when the bot needs to check each message. This is not necessarily the offline/online case but merely a high-traffic room (e.g. M2M cases with measurements/traces/pings etc. from many sources being sent as individual messages). Absent an option to register the bot as an application service, MatrixClient only syncs but never fills up gaps with /messages if a sync comes with limited: true.

Describe the solution you'd like
It would be great if MatrixClient either could be configured to fill up gaps or at least exposed the batch tokens so that the bot code could do that.

Describe alternatives you've considered
There don't seem to be feasible alternatives aside from using the application service API instead of client-server API (not an option if the bot cannot be registered on the homeserver). There doesn't seem to be a way to easily obtain batch tokens from syncs - if there were, the bot could call /messages itself and process the gaps as necessary.

@KitsuneRal KitsuneRal added the enhancement New feature or request label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant