@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
19 lines (16 loc) • 693 B
JavaScript
;
/**
* This function helps consider the every condition
* related to enabling emoji reaction feature.
*/
function getIsReactionEnabled(_a) {
var channel = _a.channel, config = _a.config, moduleLevel = _a.moduleLevel;
if (!channel || channel.isBroadcast || channel.isEphemeral) {
return false;
}
if (channel.isSuper)
return moduleLevel !== null && moduleLevel !== void 0 ? moduleLevel : config.groupChannel.enableReactionsSupergroup;
return moduleLevel !== null && moduleLevel !== void 0 ? moduleLevel : config.groupChannel.enableReactions;
}
exports.getIsReactionEnabled = getIsReactionEnabled;
//# sourceMappingURL=bundle-CXbYckbN.js.map