In case of dynamic permission change, Chat box was getting hidden due to the canViewChat check. Added canReceive similar to the chatPrivate.canReceive.
Note: Web Core equivalent is not added yet. It has to be added and the type casting has to be removed from this PR.
Steps to test
Run the following code snippet for presets that have everything disabled for public chats.
Description
In case of dynamic permission change, Chat box was getting hidden due to the canViewChat check. Added canReceive similar to the chatPrivate.canReceive.
Note: Web Core equivalent is not added yet. It has to be added and the type casting has to be removed from this PR.
Steps to test
Run the following code snippet for presets that have everything disabled for public chats.