Skip to content

Feat/msc4258 fed user dir#4

Draft
mcalinghee wants to merge 2 commits intodevelop_tchapfrom
feat/msc4258-fed-user-dir
Draft

Feat/msc4258 fed user dir#4
mcalinghee wants to merge 2 commits intodevelop_tchapfrom
feat/msc4258-fed-user-dir

Conversation

@mcalinghee
Copy link

@mcalinghee mcalinghee commented Feb 17, 2026

MSC Federated User Directory :
https://github.com/tchapgouv/matrix-spec-proposals/blob/fed-user-dir/proposals/4258-federated-user-directory.md

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
    • Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
  • Code style is correct
    (run the linters)

TODO:

  • add configuration to allow federated user search (msc4258_enabled)
  • add search token
  • perfom test on performance side
  • add search scope
  • make sure CI are passing through
  • rework selection of target homeserver
  • more results on more servers(when too many servers) if user asks for it

Search results from federated servers
"""
# Use the {user_id}_{search_term} as cache key
cache_key = f"{user_id}_{search_term}"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il faudra changer cette cle de cache (pour y mettre le search token?) et peut etre changer le timeout de 1h(timeout_ms=60 * 60 * 1000)

body = parse_json_object_from_request(request)

limit = int(body.get("limit", 10))
limit = int(body.get("limit", 5))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voir si on met ceci a 10

@mcalinghee mcalinghee force-pushed the feat/msc4258-fed-user-dir branch from 799edb6 to 6d915b4 Compare February 17, 2026 22:13
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.

1 participant

Comments