Skip to content

add ability for user to delete a DM thread#2040

Draft
blued-gear wants to merge 7 commits intomainfrom
new/deletable_dm
Draft

add ability for user to delete a DM thread#2040
blued-gear wants to merge 7 commits intomainfrom
new/deletable_dm

Conversation

@blued-gear
Copy link
Collaborator

@blued-gear blued-gear commented Mar 2, 2026

  • users can leave chats (removes) them from their messages list and will ignore new messages)
  • single messages can be reported and removed by a mod
  • reports are federated (in theory)

Also, while implementing reports I found inefficiencies in our codebase (too many instanceof checks and code-duplications).
So this PR now also includes a refactor which introduces SwitchingServiceRegistry. This new service can (and should from now on) be used to retrieve an implementation of a requested interface which fits a certain object to handle. Kinda like a centralized instanceof switch.

fixes #1423

@blued-gear blued-gear self-assigned this Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report (and delete?) option(s) for DMs / user messages

1 participant