element-hq / element-hq/synapse

Appservices are not queried for users during profile requests

Open
#4,310 0 comments 0 reactions 0 assignees View on GitHub
A-Application-Service T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#4310](https://github.com/matrix-org/synapse/issues/4310).

---

Related: #4143

When Synapse receives an event that is directed at/sent by an appservice user, it ensures the appservice has registered the user by hitting the `/users` appservice API. This check is not done during profile requests, however. This means that when clients try and do profile lookups before invites (such as in the case of riot: https://github.com/vector-im/riot-web/issues/7922), they might not bother with the invite because the user doesn't exist.

TLDR: Synapse should be hitting an appservice's `/users` endpoint during profile lookup requests too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.