mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
closes #5103
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
/* globals define, socket, app, ajaxify */
|
||||
/* globals define, socket, app */
|
||||
|
||||
define('forum/chats/search', ['components'], function(components) {
|
||||
|
||||
@@ -75,7 +75,9 @@ define('forum/chats/search', ['components'], function(components) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
if (roomId) {
|
||||
Chats.switchChat(roomId);
|
||||
require(['forum/chats'], function(chats) {
|
||||
chats.switchChat(roomId);
|
||||
});
|
||||
} else {
|
||||
app.newChat(userObj.uid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user