Merge pull request #21413 from ramonlsouza/issue-21317

fix: [3.0 Beta 2] Chat lock settings do not work as expected
This commit is contained in:
Ramón Souza 2024-10-14 10:40:06 -03:00 committed by GitHub
commit bc5828c8c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -571,7 +571,7 @@ const ChatMessageFormContainer: React.FC = () => {
if (isPublicChat) {
locked = (isLocked && disablePublicChat) || false;
} else {
locked = (isLocked && disablePrivateChat) || false;
locked = (isLocked && disablePrivateChat && !chat?.participant?.isModerator) || false;
}
}