matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Refactor `get_user_by_id` #16316

Closed erikjohnston closed 1 year ago

erikjohnston commented 1 year ago

Reviewable commit-by-commit.

  1. Doesn't join against user_ips now, as last_seen_ts was rarely used and has been moved out to a separate function.
  2. Make get_user_by_id return a proper type, rather than caching a dict.