Commit 944fa74b authored by kaiyou's avatar kaiyou
Browse files

Do not match exactly in matrix replies

parent 5b25a474
Pipeline #267 passed with stage
in 1 minute and 12 seconds
......@@ -32,7 +32,7 @@ def lookup_in_matrix(context, account, roomid, message):
if roomid not in sync["rooms"]["join"]:
return False
for event in sync["rooms"]["join"][roomid]["timeline"]["events"]:
if event["content"].get("body", "") == message:
if message in event["content"].get("body", ""):
return 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