Assign matrix platform chat ids on creation
This commit is contained in:
parent
0cdee532c4
commit
8270e5821e
4 changed files with 76 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue