This commit is contained in:
Florent
2026-07-27 10:27:00 -04:00
parent c61f94bbfe
commit c487efbe18
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -353,7 +353,12 @@ class MessagingCommands(CommandHandlerBase):
else:
raise TypeError(f"set_flood_scope: unsupported scope type {type(scope).__name__}")
logger.debug(f"Setting scope to {scope_key.hex()}")
if force_unscoped:
logger.debug("Forcing unscoped messages")
elif scope_key is None:
logger.debug(f"Resetting scope")
else:
logger.debug(f"Setting scope to {scope_key.hex()}")
cmd_data = bytearray([CommandType.SET_FLOOD_SCOPE.value])
if force_unscoped:
@@ -398,6 +403,9 @@ class MessagingCommands(CommandHandlerBase):
return await self.send(cmd_data, [EventType.OK, EventType.ERROR])
async def reset_default_flood_scope(self):
return await self.set_default_flood_scope(None)
async def get_default_flood_scope(self):
logger.debug(f"Getting default flood scope")
cmd_data = bytearray([CommandType.GET_DEFAULT_FLOOD_SCOPE.value])