Assign matrix platform chat ids on creation

This commit is contained in:
Mikhail Putilovskij 2026-04-19 17:31:21 +03:00
parent 0cdee532c4
commit 8270e5821e
4 changed files with 76 additions and 35 deletions

View file

@ -64,6 +64,7 @@ async def test_mat01_invite_creates_space_and_chat1():
assert room_meta is not None
assert room_meta["chat_id"] == "C4"
assert room_meta["space_id"] == "!space:example.org"
assert room_meta["platform_chat_id"] == "matrix:!chat1:example.org"
assert user_meta["next_chat_index"] == 5
chats = await runtime.chat_mgr.list_active("@alice:example.org")
@ -119,6 +120,7 @@ async def test_mat03_no_hardcoded_c1():
room_meta = await get_room_meta(runtime.store, "!chat1:example.org")
assert room_meta is not None
assert room_meta["chat_id"] == "C7"
assert room_meta["platform_chat_id"] == "matrix:!chat1:example.org"
user_meta = await get_user_meta(runtime.store, "@alice:example.org")
assert user_meta is not None