mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix chat redirect
This commit is contained in:
@@ -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 + '"]');
|
||||
|
||||
Reference in New Issue
Block a user