fix: explicitly check the type of Message_AllowEditing (#5659)
This commit is contained in:
parent
a1fb966446
commit
18ad40a82a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue