markRead fixes

This commit is contained in:
barisusakli
2015-12-16 15:43:01 +02:00
parent 1bd9b364e4
commit 832a20e59e
5 changed files with 20 additions and 20 deletions

View File

@@ -209,6 +209,10 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
});
});
tagEl.on('beforeItemRemove', function(event) {
event.cancel = !ajaxify.data.owner;
});
tagEl.on('itemRemoved', function(event) {
socket.emit('modules.chats.removeUserFromRoom', {roomId: roomId, username: event.item});
});