diff --git a/src/commands/UnbanBanCommand.ts b/src/commands/UnbanBanCommand.ts index 12d0c76b..89433254 100644 --- a/src/commands/UnbanBanCommand.ts +++ b/src/commands/UnbanBanCommand.ts @@ -119,6 +119,10 @@ export async function execBanCommand(roomId: string, event: any, mjolnir: Mjolni await mjolnir.client.sendStateEvent(bits.list.roomId, bits.ruleType, stateKey, ruleContent); await mjolnir.client.unstableApis.addReactionToEvent(roomId, event['event_id'], '✅'); + + // Just sync the lists to apply the ban as it might not always come down /sync for some reason + await logMessage(LogLevel.DEBUG, "UnbanBanCommand", `Syncing lists to ensure the ban is applied`); + await mjolnir.syncLists(config.verboseLogging); } // !mjolnir unban [apply:t/f]