2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-11 13:10:45 +00:00
This commit is contained in:
quadrismegistus 2020-09-09 21:00:21 +01:00
parent ad2ff7c452
commit e5e9b24af5

View File

@ -199,9 +199,14 @@ class Message(Logger):
@property @property
def messages(self): def messages(self):
# move through msgs recursively # move through msgs recursively
yield self def _msgs():
if self.has_embedded_msg: msg=self
yield self.messages while True:
yield msg
if msg.has_embedded_msg:
msg=msg.msg
break
return list(_msgs())
@property @property
def route(self): def route(self):