fix(channels): retain scheduled results across pre-send outages

This commit is contained in:
Xubin Ren committed 2026-10-17 12:49:03 +08:00
1 parent faf1efaf09
commit 9c1b16b3cc
27 files changed
+568 -51

No files matched your search

+2 -1
View File
@@ -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)