dyte-io / ui-kit

Dyte's UI library for creating meeting interfaces.
Apache License 2.0
1 stars 1 forks source link

feat(internal): added ability to show view only public chat #8

Closed ravindra-dyte closed 1 month ago

ravindra-dyte commented 1 month ago
Linear Issue
fixes WEB-4023

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.

        Object.defineProperty(
            meeting?.self.permissions.chatPublic,
            "canReceive",
            {
                value: true
            }
        );
github-actions[bot] commented 1 month ago

:tada: This PR is included in version 2.1.0-staging.15 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: