Changeset View
Changeset View
Standalone View
Standalone View
lib/shared/reaction-utils.js
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | ): boolean { | ||||
} | } | ||||
const creatorRelationshipHasBlock = | const creatorRelationshipHasBlock = | ||||
targetMessageCreatorRelationship && | targetMessageCreatorRelationship && | ||||
relationshipBlockedInEitherDirection(targetMessageCreatorRelationship); | relationshipBlockedInEitherDirection(targetMessageCreatorRelationship); | ||||
const hasPermission = threadHasPermission( | const hasPermission = threadHasPermission( | ||||
threadInfo, | threadInfo, | ||||
threadPermissions.VOICED, | threadPermissions.REACT_TO_MESSAGE, | ||||
); | ); | ||||
return hasPermission && !creatorRelationshipHasBlock; | return hasPermission && !creatorRelationshipHasBlock; | ||||
} | } | ||||
export { | export { | ||||
stringForReactionList, | stringForReactionList, | ||||
useMessageReactionsList, | useMessageReactionsList, | ||||
useCanCreateReactionFromMessage, | useCanCreateReactionFromMessage, | ||||
}; | }; |