fix route on chat search

v1.18.x
Anil Mandepudi 8 years ago committed by GitHub
parent 9c646ce39c
commit 2ef09de48d

@ -75,7 +75,7 @@ define('forum/chats/search', ['components'], function(components) {
return app.alertError(err.message); return app.alertError(err.message);
} }
if (roomId) { if (roomId) {
ajaxify.go('chats/' + roomId); Chats.switchChat(roomId);
} else { } else {
app.newChat(userObj.uid); app.newChat(userObj.uid);
} }
@ -84,4 +84,4 @@ define('forum/chats/search', ['components'], function(components) {
} }
return search; return search;
}); });

Loading…
Cancel
Save