Commit 56f1d9e2 by Lee Munkyeong

オフライン対応

parent 3af4cef7
......@@ -1557,6 +1557,10 @@ CHAT_UI.refreshArchiveScreen = function() {
// ローカルDBのデータを表示
var archiveList = CHAT_DB.getArchiveList();
if (typeof archiveList == 'undefined') {
CHAT_UI.dismissLoadingIndicator();
return;
}
archiveList.forEach(function(archive) {
var typeImage = "";
switch(archive.archiveType) {
......
......@@ -28,8 +28,12 @@ CHAT.getProfileImgUrl = function(path) {
if (path == undefined || path == "") {
return ASSET_PATH + 'img/noImage.png';
} else {
var userInfo = path.split("/").reverse();
return CMS_SERVER_URL + '/chatapi/user?profileFileName=' + userInfo[0] + '&profileGetLoginId=' + userInfo[1] + '&sid=' + CHAT.globalLoginParameter.sid + '&cmd=12';
if (path.includes('/mnt')) {
var userInfo = path.split("/").reverse();
return CMS_SERVER_URL + '/chatapi/user?profileFileName=' + userInfo[0] + '&profileGetLoginId=' + userInfo[1] + '&sid=' + CHAT.globalLoginParameter.sid + '&cmd=12';
} else {
return path;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment