matrix-org / matrix-org/matrix-js-sdk

Ignoring users working not properly

Open
#3,719 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

Hello, I'm trying to implement an ignore function and ran into a bit of a problem

how to reproduce:
User A starts ignoring User B
User B sends several messages to User A
User A does not receive any messages from User B
then user A will unignore user B
User A received several messages sent by User B while User B was being ignored

sometimes I can get the last message, sometimes all messages, It depends on how quickly I unignore after the ignored user has sent a message

matrix js sdk version: "matrix-js-sdk": "^28.0.0"
Also attached 2 screens made in Element app
![1](https://github.com/matrix-org/matrix-js-sdk/assets/30363943/ca3417b9-ff7c-49d5-b3ff-c3f1f1ffa97a)
![2](https://github.com/matrix-org/matrix-js-sdk/assets/30363943/ef487f42-2f26-43ca-9289-d4ec5bfe5734)

expected result: According to the documentation, the user should not receive any messages sent by him while ignoring the user

any thoughts on how to fix this?

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.

Research direction

Start by reproducing the ignore, message-send, and unignore sequence described against matrix-js-sdk version 28, then trace the SDK's handling of ignored users and later timeline updates. Done means messages sent while a user is ignored remain unavailable after unignoring, consistently across the reported timing variations.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.