clean up and bug fixes

This commit is contained in:
nnduc
2026-11-07 15:29:40 +07:00
parent 978dd5b5da
commit 0d8107a0a7
374 changed files with 98 additions and 5593 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ async def main():
# Alice sends a message, Bob opens the room
await alice.call("Chat", "ajaxGetRoom", [room])
await alice.recv_until(lambda m: m.get("func") == "Chat.setSpecificElements")
m = await alice.recv_until(lambda m: m.get("func") == "Chat.setSpecificElements" or (m.get("func") == "MovimTpl.fill" and m["p"][0] == "#chat_widget"))
assert m["func"] == "Chat.setSpecificElements", "the bubbles have to come before the discussion"
r = alice.ajax("Chat", "ajaxHttpDaemonSendMessage", [str(uuid.uuid4()), room, "Hello bob in the room", True], daemon=True)
m = await alice.recv_until(lambda m: m.get("func") == "Chat.appendMessagesWrapper" and "Hello bob in the room" in json.dumps(m))
msg = list(list(m["p"][0].values())[0].values())[0]