From b9e5409300b9f749be18d76c7ed5c7f76ea2b01c Mon Sep 17 00:00:00 2001 From: git-bruh Date: Mon, 26 Apr 2021 13:35:01 +0530 Subject: [PATCH] fix blank message detection --- appservice/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appservice/matrix.py b/appservice/matrix.py index fcd8795..5b84060 100644 --- a/appservice/matrix.py +++ b/appservice/matrix.py @@ -13,7 +13,7 @@ class Event(object): self.attachment = content.get("url") self.author = event["author"] - self.body = content.get("body", "") + self.body = content.get("body", "").strip() self.event_id = event["event_id"] self.is_direct = content.get("is_direct", False) self.room_id = event["room_id"]