refactor(matrix): rewrite adapter from matrix-nio to mautrix-python

Translate all nio SDK calls to mautrix equivalents while preserving the
adapter structure, business logic, and all features (E2EE, reactions,
threading, mention gating, text batching, media caching, voice MSC3245).

Key changes:
- nio.AsyncClient -> mautrix.client.Client + HTTPAPI + MemoryStateStore
- Manual E2EE key management -> OlmMachine with auto key lifecycle
- isinstance(resp, nio.XxxResponse) -> mautrix returns values directly
- add_event_callback per type -> single ROOM_MESSAGE handler with
  msgtype dispatch
- Room state (member_count, display_name) via async state store lookups
- Upload/download return ContentURI/bytes directly (no wrapper objects)
This commit is contained in:
alt-glitch 2026-04-11 06:51:43 +05:30 committed by Teknium
parent 1850747172
commit 8053d48c8d
4 changed files with 578 additions and 837 deletions

File diff suppressed because it is too large Load diff