print joined rooms

This commit is contained in:
Moritz 2025-02-11 22:35:46 +01:00
parent 7fadec40a9
commit a4241310b1
Signed by: moritz
GPG key ID: 1020A035E5DD0824

View file

@ -51,6 +51,7 @@ async def main() -> None:
await client.sync() await client.sync()
for room in client.invited_rooms: for room in client.invited_rooms:
await client.join(room) await client.join(room)
print(f"joined room {room}")
# Watch out! If you join an old room you'll see lots of old messages # Watch out! If you join an old room you'll see lots of old messages
await client.sync_forever(timeout=30000) # milliseconds await client.sync_forever(timeout=30000) # milliseconds