Commit 7d91db6d by Kang Donghun

Merge branch 'bugfix/#604-modify-to-display-unread-message-count' into 'release_sp3'

#42561 未読メッセージ1000件目を送信すると、未読数が「1000」になる

See merge request !77
parents bfed63b2 cf65e2d4
...@@ -1100,6 +1100,10 @@ CHAT_UI.refreshRoomList = function(roomType) { ...@@ -1100,6 +1100,10 @@ CHAT_UI.refreshRoomList = function(roomType) {
if (room.chatRoomName == "") { if (room.chatRoomName == "") {
room.chatRoomName = attendUserName.join(', '); room.chatRoomName = attendUserName.join(', ');
} }
var unreadMessageCount = room.unreadCount == 0 ? '' : room.unreadCount;
if (unreadMessageCount > 999) {
unreadMessageCount = '999+';
}
let html = Mustache.render(template, { let html = Mustache.render(template, {
thumbnailCount: thumbnailCount, thumbnailCount: thumbnailCount,
roomName: room.chatRoomName, roomName: room.chatRoomName,
...@@ -1107,7 +1111,7 @@ CHAT_UI.refreshRoomList = function(roomType) { ...@@ -1107,7 +1111,7 @@ CHAT_UI.refreshRoomList = function(roomType) {
profileImage: room.profileImagePath, profileImage: room.profileImagePath,
lastMessage: displayMsg , lastMessage: displayMsg ,
time: room.insertDate ? CHAT_UTIL.formatDate(room.insertDate).createdAt : '', time: room.insertDate ? CHAT_UTIL.formatDate(room.insertDate).createdAt : '',
unreadMsgCnt: room.unreadCount == 0 ? '' : room.unreadCount, unreadMsgCnt: unreadMessageCount,
userCnt: room.attendUsers.length + 1, userCnt: room.attendUsers.length + 1,
attendUsers: room.attendUsers attendUsers: room.attendUsers
}); });
......
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