fix(channels): retain scheduled results across pre-send outages
This commit is contained in:
1 parent
61db036cee
commit
508cedff31
31 files changed
+768
-61
No files matched your search
@@ -58,6 +58,7 @@ except ImportError as e:
|
||||
"Matrix dependencies not installed. Run: nanobot plugins enable matrix"
|
||||
) from e
|
||||
|
||||
from nanobot.bus.delivery import ChannelNotReadyError
|
||||
from nanobot.bus.events import OutboundMessage
|
||||
from nanobot.bus.outbound_events import ProgressEvent
|
||||
from nanobot.bus.queue import MessageBus
|
||||
@@ -621,7 +622,7 @@ class MatrixChannel(BaseChannel):
|
||||
):
|
||||
return
|
||||
if not self.client:
|
||||
raise RuntimeError("Matrix client not initialized")
|
||||
raise ChannelNotReadyError("Matrix client not initialized")
|
||||
text = msg.content or ""
|
||||
candidates = self._collect_outbound_media_candidates(msg.media)
|
||||
relates_to = self._build_outbound_relates_to(msg.metadata)
|
||||
|
||||
Reference in new issue
Block a user