Thing of the day: Add destroy handler (#11694)

This commit is contained in:
Aurastic 2026-01-09 02:51:17 +05:30 committed by GitHub
parent 6d9a1cd20f
commit 35e871e1d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1021,3 +1021,13 @@ export const roomSettings: Chat.SettingsHandler[] = [
] : [['disabled', true]],
}),
];
export const destroy = () => {
for (const [, v] of otds) {
if (v.autoStartTimer) {
clearInterval(v.autoStartTimer);
v.autoStartTimer = null;
v.room.modlog({ action: `${v.id.toUpperCase()} TIMER RESTART` });
}
}
};