fix: explicitly check the type of Message_AllowEditing (#5659)

This commit is contained in:
Gleidson Daniel Silva 2024-04-25 17:40:46 -03:00 committed by GitHub
parent a1fb966446
commit 18ad40a82a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ const MessageActions = React.memo(
}
const editOwn = isOwn(message);
if (!(permissions.hasEditPermission || (Message_AllowEditing && editOwn))) {
if (!(permissions.hasEditPermission || (Message_AllowEditing !== false && editOwn))) {
return false;
}
const blockEditInMinutes = Message_AllowEditing_BlockEditInMinutes;