fix blank message detection
This commit is contained in:
parent
6b20650503
commit
b9e5409300
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class Event(object):
|
||||||
|
|
||||||
self.attachment = content.get("url")
|
self.attachment = content.get("url")
|
||||||
self.author = event["author"]
|
self.author = event["author"]
|
||||||
self.body = content.get("body", "")
|
self.body = content.get("body", "").strip()
|
||||||
self.event_id = event["event_id"]
|
self.event_id = event["event_id"]
|
||||||
self.is_direct = content.get("is_direct", False)
|
self.is_direct = content.get("is_direct", False)
|
||||||
self.room_id = event["room_id"]
|
self.room_id = event["room_id"]
|
||||||
|
|
Loading…
Reference in a new issue