diff --git a/contracts/src/spaces/facets/Permissions.sol b/contracts/src/spaces/facets/Permissions.sol index a0ba22fc5..235cd5fdd 100644 --- a/contracts/src/spaces/facets/Permissions.sol +++ b/contracts/src/spaces/facets/Permissions.sol @@ -14,5 +14,6 @@ library Permissions { string public constant ModifyBanning = "ModifyBanning"; string public constant Read = "Read"; string public constant Write = "Write"; + string public constant ReactReply = "ReactReply"; string public constant Ping = "Ping"; } diff --git a/core/node/auth/permissions.go b/core/node/auth/permissions.go index 026134c41..b8edae64b 100644 --- a/core/node/auth/permissions.go +++ b/core/node/auth/permissions.go @@ -13,6 +13,7 @@ const ( PermissionPinMessages PermissionAddRemoveChannels PermissionModifySpaceSettings + PermissionReactReply ) func (p Permission) String() string { @@ -37,6 +38,9 @@ func (p Permission) String() string { return "AddRemoveChannels" case PermissionModifySpaceSettings: return "ModifySpaceSettings" + case PermissionReactReply: + return "ReactReply" + default: return "Unknown" } diff --git a/packages/web3/src/ContractTypes.ts b/packages/web3/src/ContractTypes.ts index 7a1460bd7..f0e74d1a9 100644 --- a/packages/web3/src/ContractTypes.ts +++ b/packages/web3/src/ContractTypes.ts @@ -19,6 +19,7 @@ export const Permission = { PinMessage: 'PinMessage', AddRemoveChannels: 'AddRemoveChannels', ModifySpaceSettings: 'ModifySpaceSettings', + ReactReply: 'ReactReply', } as const export type Permission = (typeof Permission)[keyof typeof Permission] diff --git a/packages/web3/src/v3/SpaceDapp.ts b/packages/web3/src/v3/SpaceDapp.ts index 8bc08cdda..a4cf0e3ad 100644 --- a/packages/web3/src/v3/SpaceDapp.ts +++ b/packages/web3/src/v3/SpaceDapp.ts @@ -714,7 +714,11 @@ export class SpaceDapp implements ISpaceDapp { ? channelNetworkId : `0x${channelNetworkId}` - if (permission === Permission.Read || permission === Permission.Write) { + if ( + permission === Permission.Read || + permission === Permission.Write || + permission === Permission.ReactReply + ) { const linkedWallets = await this.getLinkedWallets(user) const owner = await space.Ownable.read.owner()