/sync will return the most recent messages for a room as soon as you /join it.

Open
#128 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start with the /sync and /join handling in this Python framework, then compare the behavior with mautrix/go's sync.go lines 259-282. Trace which events are delivered after joining a room and verify that already-processed history is not processed again when the bot is toggled out of and back into the room.

Written by the indexing model from the issue text.

Description

/sync will return the most recent messages for a room as soon as you /join it.
We do NOT want to process those events in that particular room because they may have already been processed (if you toggle the bot in/out of the room).

https://github.com/mautrix/go/blob/master/sync.go#L259-L282

Dominant language
Python
Stars
249
Forks
84
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mautrix/python

All issues in mautrix/python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.