Commit 6b60a3b0 by Lee Munkyeong

ルームに入場している状態で新規メッセージを受信した場合loginで表示される問題対応

parent 6802b30c
......@@ -233,11 +233,15 @@ function setSocketAction () {
var replacePath = message.text;
replacePath = replacePath.replaceAll('?fileName=', '?sid=' + CHAT.globalLoginParameter.sid + '&fileName=');
message.text = replacePath;
//TODO newMessageの際にDB格納が必要。
var messageSender;
if (CHAT_UTIL.isIOS()) {
messageSender = JSON.parse(android.getUserInfoList(message.userId));
} else if (CHAT_UTIL.isAndroid()) {
messageSender = JSON.parse(android.getUserInfoList(message.userId));
}
let html = Mustache.render(template, {
text: message.text,
from: message.from,
from: messageSender[0].shopMemberName,
profileImage: message.profileImagePath,
shopMemberId: message.userId,
createdAtDay: messageTime.createdAtDay,
......
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