Allow /cut 0

This commit is contained in:
Cohee 2023-07-30 21:35:36 +03:00
parent 49f7185c8c
commit e172f50d4f
1 changed files with 0 additions and 6 deletions

View File

@ -1224,12 +1224,6 @@ async function doMesCut(_, text) {
return
}
//reject attempts to delete firstmes
if (text === '0') {
toastr.error('Cannot delete the First Message')
return
}
let mesIDToCut = Number(text).toFixed(0)
let mesToCut = $("#chat").find(`.mes[mesid=${mesIDToCut}]`)