feat(channels): add inherited global compaction notice policy
This commit is contained in:
1 parent
7644d845b4
commit
ab6d5f1d3c
35 files changed
+287
-37
No files matched your search
@@ -261,7 +261,9 @@ if DISCORD_AVAILABLE:
|
||||
async def send_outbound(self, msg: OutboundMessage) -> None:
|
||||
"""Send a nanobot outbound message using Discord transport rules."""
|
||||
compaction = msg.event if isinstance(msg.event, ContextCompactionEvent) else None
|
||||
if compaction is not None and not compaction.notify:
|
||||
if compaction is not None and not (
|
||||
compaction.notify or self._channel.show_compaction_notices
|
||||
):
|
||||
return
|
||||
# A compaction's outcome replaces its own start notice in place, so
|
||||
# the lifecycle stays visible as one message instead of two (#5719).
|
||||
|
||||
Reference in new issue
Block a user