fix chat redirect

This commit is contained in:
barisusakli
2015-10-15 13:00:32 -04:00
parent f6fa0ace3c
commit b556652582
3 changed files with 3 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
Chats.switchChat = function(uid, username) {
if (!$('[component="chat/messages"]').length) {
ajaxify.go('chats/' + username);
return ajaxify.go('chats/' + utils.slugify(username));
}
var contactEl = $('.chats-list [data-uid="' + uid + '"]');