whyuzeim 1.1.8 → 1.1.10
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.
|
@@ -225,7 +225,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
225
225
|
var _userInfo = agoraChatUikit.rootStore.addressStore.appUsersInfo[cvs.conversationId];
|
|
226
226
|
if (!_userInfo || !_userInfo.avatarurl || !_userInfo.name) {
|
|
227
227
|
client.fetchUserInfoById([cvs.conversationId], ["nickname", "avatarurl", "mail", "phone", "gender", "sign", "birth", "ext"]).then(function (res) {
|
|
228
|
-
var _res$data$cvs$convers;
|
|
228
|
+
var _res$data$cvs$convers, _res$data$cvs$convers2;
|
|
229
229
|
setHeaderInfo(function (prevState) {
|
|
230
230
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
231
231
|
headerImageURL: res.data[cvs.conversationId].avatarurl,
|
|
@@ -239,7 +239,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
239
239
|
avatarurl: res.data[cvs.conversationId].avatarurl
|
|
240
240
|
});
|
|
241
241
|
tools.reportAgentInUse(http, cvs.conversationId, res.data[cvs.conversationId]);
|
|
242
|
-
var customObj = JSON.parse((_res$data$cvs$
|
|
242
|
+
var customObj = (_res$data$cvs$convers = res.data[cvs.conversationId]) !== null && _res$data$cvs$convers !== void 0 && _res$data$cvs$convers.ext ? JSON.parse((_res$data$cvs$convers2 = res.data[cvs.conversationId]) === null || _res$data$cvs$convers2 === void 0 ? void 0 : _res$data$cvs$convers2.ext) : {};
|
|
243
243
|
// 假设有一个字段 shouldShowInList 来判断是否展示
|
|
244
244
|
setIsAgent((customObj === null || customObj === void 0 ? void 0 : customObj.certification) === "1");
|
|
245
245
|
});
|
|
@@ -223,7 +223,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
223
223
|
var _userInfo = rootStore.addressStore.appUsersInfo[cvs.conversationId];
|
|
224
224
|
if (!_userInfo || !_userInfo.avatarurl || !_userInfo.name) {
|
|
225
225
|
client.fetchUserInfoById([cvs.conversationId], ["nickname", "avatarurl", "mail", "phone", "gender", "sign", "birth", "ext"]).then(function (res) {
|
|
226
|
-
var _res$data$cvs$convers;
|
|
226
|
+
var _res$data$cvs$convers, _res$data$cvs$convers2;
|
|
227
227
|
setHeaderInfo(function (prevState) {
|
|
228
228
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
229
229
|
headerImageURL: res.data[cvs.conversationId].avatarurl,
|
|
@@ -237,7 +237,7 @@ var HighlyCustomChat = function HighlyCustomChat(props) {
|
|
|
237
237
|
avatarurl: res.data[cvs.conversationId].avatarurl
|
|
238
238
|
});
|
|
239
239
|
reportAgentInUse(http, cvs.conversationId, res.data[cvs.conversationId]);
|
|
240
|
-
var customObj = JSON.parse((_res$data$cvs$
|
|
240
|
+
var customObj = (_res$data$cvs$convers = res.data[cvs.conversationId]) !== null && _res$data$cvs$convers !== void 0 && _res$data$cvs$convers.ext ? JSON.parse((_res$data$cvs$convers2 = res.data[cvs.conversationId]) === null || _res$data$cvs$convers2 === void 0 ? void 0 : _res$data$cvs$convers2.ext) : {};
|
|
241
241
|
// 假设有一个字段 shouldShowInList 来判断是否展示
|
|
242
242
|
setIsAgent((customObj === null || customObj === void 0 ? void 0 : customObj.certification) === "1");
|
|
243
243
|
});
|