Skip to content

Commit 4cb466f

Browse files
committed
login notify message fix
1 parent 51a6265 commit 4cb466f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chat/js/client/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ Class.Define('Chat', {
224224
},
225225
_handleServerUserLogin: function (data, live) {
226226
if (live) this._updateOnlineUsers(data);
227-
if (!live) this._addMessage('notify', data.user + ' has joined chat');
227+
if (!live || (live && data.id !== this._id))
228+
this._addMessage('notify', data.user + ' has joined chat');
228229
if (live) this._updateRecepients(data.onlineUsers);
229230
},
230231
_handleServerUserLogout: function (data, live) {

0 commit comments

Comments
 (0)