matrix-org / matrix-org/matrix-spec

AppServices: Registration option for disallowing AS user events being sent back to the AS

Open
#301 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Application-Services
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

Currently when an application service sends a room message through one of their fake users, say @_appservice_bob:domain.com, that username matches the application service's users regex. Due to this, the homeserver considers the application service interested in the event, and thus sends it back to the application service.

Bridges, for instance, don't care about these messages and simply drop them if they see it comes from a user who's userID matches their users regex.

An option, such as prevent_returning_sent_events, which would instruct the homeserver not to send events that have originally come from an appservice back to that same appservice, would prevent some bandwidth from being wasted here.

@Half-Shot

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

The issue proposes a Matrix application-service event-routing option named prevent_returning_sent_events, but names no file, specification section, or test. Start by locating the application-service event delivery rules in the specification; done means the behavior and option are clearly defined for events sent by an appservice user.

Written by the indexing model from the issue text.

Assessment

Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.