Closed alexjba closed 6 months ago
Design When a new channel is created and permissions are added, there is an option to allow community members with view only permission to add reactions.
This means the reactions should only be visible to the members with the following permissions:
TODO:
[x] Integrate the backend flows in nim (https://github.com/status-im/status-desktop/issues/13292)
nim
[x] Remove this commented flag that's hiding the option https://github.com/status-im/status-desktop/blob/master/ui/app/AppLayouts/Communities/views/PermissionsView.qml#L132
[x] Implement setViewOnlyCanAddReaction https://github.com/status-im/status-desktop/blob/master/ui/imports/shared/stores/PermissionsStore.qml#L20
setViewOnlyCanAddReaction
[x] Provide the ViewOnlyCanAddReaction value in the store and connect it to the CreateChannelPopup.viewOnlyCanAddReaction
ViewOnlyCanAddReaction
CreateChannelPopup.viewOnlyCanAddReaction
[x] Update the MessageView.d.addReactionAllowed with the backend value for the user https://github.com/status-im/status-desktop/blob/master/ui/imports/shared/views/chat/MessageView.qml#L264
Depends on https://github.com/status-im/status-desktop/issues/13292
Description
Design When a new channel is created and permissions are added, there is an option to allow community members with view only permission to add reactions.
This means the reactions should only be visible to the members with the following permissions:
TODO:
[x] Integrate the backend flows in
nim
(https://github.com/status-im/status-desktop/issues/13292)[x] Remove this commented flag that's hiding the option https://github.com/status-im/status-desktop/blob/master/ui/app/AppLayouts/Communities/views/PermissionsView.qml#L132
[x] Implement
setViewOnlyCanAddReaction
https://github.com/status-im/status-desktop/blob/master/ui/imports/shared/stores/PermissionsStore.qml#L20[x] Provide the
ViewOnlyCanAddReaction
value in the store and connect it to theCreateChannelPopup.viewOnlyCanAddReaction
[x] Update the MessageView.d.addReactionAllowed with the backend value for the user https://github.com/status-im/status-desktop/blob/master/ui/imports/shared/views/chat/MessageView.qml#L264