Commit 4211c369 authored by kaiyou's avatar kaiyou
Browse files

Fix the matrix federation checks when the room has no new event

parent c6e471da
Pipeline #202 passed with stage
in 59 seconds
......@@ -32,6 +32,8 @@ def send_then_receive(context, account_from, account_to, roomid, timeout=120):
sync = client_from.sync(since=next_batch, filter=filter_string)
delay = int(time.time() - start_time)
next_batch = sync["next_batch"]
if roomid not in sync["rooms"]["join"]:
for event in sync["rooms"]["join"][roomid]["timeline"]["events"]:
if event["content"].get("body", "") == canary:
result["up"] = True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment