Commit 56f1d9e2 by Lee Munkyeong

オフライン対応

parent 3af4cef7
...@@ -1557,6 +1557,10 @@ CHAT_UI.refreshArchiveScreen = function() { ...@@ -1557,6 +1557,10 @@ CHAT_UI.refreshArchiveScreen = function() {
// ローカルDBのデータを表示 // ローカルDBのデータを表示
var archiveList = CHAT_DB.getArchiveList(); var archiveList = CHAT_DB.getArchiveList();
if (typeof archiveList == 'undefined') {
CHAT_UI.dismissLoadingIndicator();
return;
}
archiveList.forEach(function(archive) { archiveList.forEach(function(archive) {
var typeImage = ""; var typeImage = "";
switch(archive.archiveType) { switch(archive.archiveType) {
......
...@@ -28,8 +28,12 @@ CHAT.getProfileImgUrl = function(path) { ...@@ -28,8 +28,12 @@ CHAT.getProfileImgUrl = function(path) {
if (path == undefined || path == "") { if (path == undefined || path == "") {
return ASSET_PATH + 'img/noImage.png'; return ASSET_PATH + 'img/noImage.png';
} else { } else {
var userInfo = path.split("/").reverse(); if (path.includes('/mnt')) {
return CMS_SERVER_URL + '/chatapi/user?profileFileName=' + userInfo[0] + '&profileGetLoginId=' + userInfo[1] + '&sid=' + CHAT.globalLoginParameter.sid + '&cmd=12'; 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