Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

/threads includes thread roots that have no thread attached to it anymore #14241

Closed
justjanne opened this issue Oct 20, 2022 · 2 comments
Closed
Assignees
Labels
A-Threads Threaded messages O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@justjanne
Copy link

Description

/threads includes thread roots that have no thread attached to it anymore due to redactions.

Steps to reproduce

  1. create a thread
  2. write replies
  3. redact all replies

Expected Behavior

The /threads endpoint stops including this thread in its response once all responses have been redacted

Actual Behavior

The /threads endpoint still includes the now empty threads

Additional Information

The homeserver correctly removed the bundled relationship from the threads, yet it still includes the roots in the /threads response.

This issue is likely related to the MSC3856 implementation

@DMRobertson DMRobertson added A-Threads Threaded messages S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. O-Occasional Affects or can be seen by some users regularly or most users rarely labels Oct 20, 2022
@clokep clokep self-assigned this Oct 20, 2022
@clokep
Copy link
Member

clokep commented Oct 20, 2022

In #13394 we changed from looking at the "live" event information to a separate table, I suspect we're not tracking event redactions properly in that table. Things to double check:

  • Redacting the "last" event in a thread should replace itself with the (now) last event.
  • If there is no events left, the thread should be removed.

@clokep
Copy link
Member

clokep commented Oct 24, 2022

This will be fixed in 1.70.0rc2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Threads Threaded messages O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

3 participants