fix route on chat search

This commit is contained in:
Anil Mandepudi
2016-09-26 17:06:31 -07:00
committed by GitHub
parent 9c646ce39c
commit 2ef09de48d

View File

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