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
@@ -616,7 +616,9 @@ class MatrixChannel(BaseChannel):
|
||||
|
||||
async def send(self, msg: OutboundMessage) -> None:
|
||||
"""Send outbound content; clear typing for non-progress messages."""
|
||||
if isinstance(msg.event, ContextCompactionEvent) and not msg.event.notify:
|
||||
if isinstance(msg.event, ContextCompactionEvent) and not (
|
||||
msg.event.notify or self.show_compaction_notices
|
||||
):
|
||||
return
|
||||
if not self.client:
|
||||
raise RuntimeError("Matrix client not initialized")
|
||||
|
||||
Reference in new issue
Block a user