|
|
|
@ -94,11 +94,17 @@ window.ChatHubHandler = (function ($) {
|
|
|
|
|
|
|
|
|
|
|
|
chat.client.notifyUser = function (tag, targetid, message) {
|
|
|
|
chat.client.notifyUser = function (tag, targetid, message) {
|
|
|
|
// Add the notification to the page.
|
|
|
|
// Add the notification to the page.
|
|
|
|
if (tag === 'connected' || tag === 'reconnected') onUserConnected(targetid, message);
|
|
|
|
if (tag === 'connected' || tag === 'reconnected') {
|
|
|
|
else if (tag === 'disconnected') onUserDisconnected(targetid, message);
|
|
|
|
onUserConnected(targetid, message);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else if (tag === 'disconnected') {
|
|
|
|
|
|
|
|
onUserDisconnected(targetid, message);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-warning-comments
|
|
|
|
// eslint-disable-next-line no-warning-comments
|
|
|
|
// TODO reconnected userpart userjoin deniedpv
|
|
|
|
// TODO userpart userjoin deniedpv
|
|
|
|
$('<li></li>').append(tag + ': ' + targetid).append(message).addClass(tag).appendTo(notifications);
|
|
|
|
$('<li></li>').append(tag + ': ' + targetid + ': ').append(message).addClass(tag).appendTo(notifications);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var setActiveChan = function (chanId) {
|
|
|
|
var setActiveChan = function (chanId) {
|
|
|
|
|