mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-11 13:10:45 +00:00
updates
This commit is contained in:
parent
ad2ff7c452
commit
e5e9b24af5
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user