Showing
1 changed file
with
4 additions
and
0 deletions
@@ -87,6 +87,10 @@ var chat = { | @@ -87,6 +87,10 @@ var chat = { | ||
87 | cmEntity.encryptedUid = encryptedUid; | 87 | cmEntity.encryptedUid = encryptedUid; |
88 | 88 | ||
89 | self.fetchHistoryMsg().always(function() { | 89 | self.fetchHistoryMsg().always(function() { |
90 | + let chatWinDOM = self.$chatWin[0]; | ||
91 | + | ||
92 | + chatWinDOM.scrollTop = chatWinDOM.scrollHeight; | ||
93 | + | ||
90 | self.$chatWin.append(time(Date.now()).show()); | 94 | self.$chatWin.append(time(Date.now()).show()); |
91 | self.connect(); | 95 | self.connect(); |
92 | 96 |
-
Please register or login to post a comment