RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
1.99k stars 1.16k forks source link

fix: explicitly check the type of `Accounts_AllowUserStatusMessageChange` #5642

Closed dansilva-dev closed 6 months ago

dansilva-dev commented 6 months ago

Proposed changes

allowUserStatusMessageChange can be true, false or undefined We should only disable status change if it is explicitly false.

Issue(s)

How to test or reproduce

Enable or disable the setting and see if the status change menu is visible or not. Also check on a server that has not changed this setting (which must have the value of undefined), to see if the option exists or not.

Screenshots

Types of changes

Checklist

Further comments

Jira: SUP-536