|
|
|
@ -81,6 +81,7 @@ $(function () { |
|
|
|
friend: ChChat.currentFriend |
|
|
|
friend: ChChat.currentFriend |
|
|
|
}) |
|
|
|
}) |
|
|
|
.done(function (response) { |
|
|
|
.done(function (response) { |
|
|
|
|
|
|
|
try { |
|
|
|
if (response.data.history) { |
|
|
|
if (response.data.history) { |
|
|
|
ChChat._historySize = response.data.oldFileSize; |
|
|
|
ChChat._historySize = response.data.oldFileSize; |
|
|
|
ChChat.setHistory(response.data.history); |
|
|
|
ChChat.setHistory(response.data.history); |
|
|
|
@ -90,6 +91,9 @@ $(function () { |
|
|
|
ChChat.usersOnline = response.data.usersOnline; |
|
|
|
ChChat.usersOnline = response.data.usersOnline; |
|
|
|
ChChat.setConnectedUsers(response.data.userList); |
|
|
|
ChChat.setConnectedUsers(response.data.userList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
|
|
console.error(error); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
setHistory: function (messageList) { |
|
|
|
setHistory: function (messageList) { |
|
|
|
|