sceyt-chat-react-uikit 1.7.9-beta.2 → 1.7.9-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -2
- package/index.modern.js +8 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -48826,6 +48826,12 @@ var Details = function Details(_ref) {
|
|
|
48826
48826
|
return Promise.reject(e);
|
|
48827
48827
|
}
|
|
48828
48828
|
};
|
|
48829
|
+
var channelMetadata = React.useMemo(function () {
|
|
48830
|
+
if (isJSON(activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.metadata)) {
|
|
48831
|
+
return JSON.parse(activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.metadata);
|
|
48832
|
+
}
|
|
48833
|
+
return activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.metadata;
|
|
48834
|
+
}, [activeChannel]);
|
|
48829
48835
|
return /*#__PURE__*/React__default.createElement(Container$v, {
|
|
48830
48836
|
backgroundColor: backgroundColor,
|
|
48831
48837
|
mounted: mounted,
|
|
@@ -48911,11 +48917,11 @@ var Details = function Details(_ref) {
|
|
|
48911
48917
|
color: textSecondary,
|
|
48912
48918
|
fontSize: channelMembersFontSize,
|
|
48913
48919
|
lineHeight: channelMembersLineHeight
|
|
48914
|
-
}, activeChannel && activeChannel.memberCount, " ", displayMemberText)))), showAboutChannel && activeChannel &&
|
|
48920
|
+
}, activeChannel && activeChannel.memberCount, " ", displayMemberText)))), showAboutChannel && activeChannel && channelMetadata && (channelMetadata === null || channelMetadata === void 0 ? void 0 : channelMetadata.d) && (/*#__PURE__*/React__default.createElement(AboutChannel, null, showAboutChannelTitle && /*#__PURE__*/React__default.createElement(AboutChannelTitle, {
|
|
48915
48921
|
color: textFootnote
|
|
48916
48922
|
}, "About"), /*#__PURE__*/React__default.createElement(AboutChannelText, {
|
|
48917
48923
|
color: textPrimary
|
|
48918
|
-
},
|
|
48924
|
+
}, channelMetadata !== null && channelMetadata !== void 0 && channelMetadata.d ? channelMetadata === null || channelMetadata === void 0 ? void 0 : channelMetadata.d : '')))), activeChannel && activeChannel.userRole && (/*#__PURE__*/React__default.createElement(Actions, {
|
|
48919
48925
|
setActionsHeight: setActionsHeight,
|
|
48920
48926
|
theme: theme,
|
|
48921
48927
|
showMuteUnmuteNotifications: showMuteUnmuteNotifications,
|
package/index.modern.js
CHANGED
|
@@ -48825,6 +48825,12 @@ var Details = function Details(_ref) {
|
|
|
48825
48825
|
return Promise.reject(e);
|
|
48826
48826
|
}
|
|
48827
48827
|
};
|
|
48828
|
+
var channelMetadata = useMemo(function () {
|
|
48829
|
+
if (isJSON(activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.metadata)) {
|
|
48830
|
+
return JSON.parse(activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.metadata);
|
|
48831
|
+
}
|
|
48832
|
+
return activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.metadata;
|
|
48833
|
+
}, [activeChannel]);
|
|
48828
48834
|
return /*#__PURE__*/React__default.createElement(Container$v, {
|
|
48829
48835
|
backgroundColor: backgroundColor,
|
|
48830
48836
|
mounted: mounted,
|
|
@@ -48910,11 +48916,11 @@ var Details = function Details(_ref) {
|
|
|
48910
48916
|
color: textSecondary,
|
|
48911
48917
|
fontSize: channelMembersFontSize,
|
|
48912
48918
|
lineHeight: channelMembersLineHeight
|
|
48913
|
-
}, activeChannel && activeChannel.memberCount, " ", displayMemberText)))), showAboutChannel && activeChannel &&
|
|
48919
|
+
}, activeChannel && activeChannel.memberCount, " ", displayMemberText)))), showAboutChannel && activeChannel && channelMetadata && (channelMetadata === null || channelMetadata === void 0 ? void 0 : channelMetadata.d) && (/*#__PURE__*/React__default.createElement(AboutChannel, null, showAboutChannelTitle && /*#__PURE__*/React__default.createElement(AboutChannelTitle, {
|
|
48914
48920
|
color: textFootnote
|
|
48915
48921
|
}, "About"), /*#__PURE__*/React__default.createElement(AboutChannelText, {
|
|
48916
48922
|
color: textPrimary
|
|
48917
|
-
},
|
|
48923
|
+
}, channelMetadata !== null && channelMetadata !== void 0 && channelMetadata.d ? channelMetadata === null || channelMetadata === void 0 ? void 0 : channelMetadata.d : '')))), activeChannel && activeChannel.userRole && (/*#__PURE__*/React__default.createElement(Actions, {
|
|
48918
48924
|
setActionsHeight: setActionsHeight,
|
|
48919
48925
|
theme: theme,
|
|
48920
48926
|
showMuteUnmuteNotifications: showMuteUnmuteNotifications,
|