Show users editing and lag, properly send message to indicate that all users have left channel and show basic error box if disconnected.
This commit is contained in:
@@ -933,6 +933,11 @@ var handleMessage = ChainPad.handleMessage = function (realtime, msgStr) {
|
||||
}
|
||||
|
||||
if (msg.messageType === Message.DISCONNECT) {
|
||||
if (msg.userName === '') {
|
||||
realtime.userList = [];
|
||||
userListChange(realtime);
|
||||
return;
|
||||
}
|
||||
var idx = realtime.userList.indexOf(msg.userName);
|
||||
if (Common.PARANOIA) { Common.assert(idx > -1); }
|
||||
if (idx > -1) {
|
||||
|
||||
Reference in New Issue
Block a user