mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fix chat route on mobile
This commit is contained in:
@@ -298,7 +298,12 @@ define('forum/chats', [
|
|||||||
};
|
};
|
||||||
|
|
||||||
Chats.switchChat = function(roomid) {
|
Chats.switchChat = function(roomid) {
|
||||||
|
var env = utils.findBootstrapEnvironment();
|
||||||
|
if (env === 'xs' || env === 'sm') {
|
||||||
|
app.openChat(roomid);
|
||||||
|
} else {
|
||||||
ajaxify.go('user/' + ajaxify.data.userslug + '/chats/' + roomid);
|
ajaxify.go('user/' + ajaxify.data.userslug + '/chats/' + roomid);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Chats.loadChatSince = function(roomId, chatContentEl, since) {
|
Chats.loadChatSince = function(roomId, chatContentEl, since) {
|
||||||
|
|||||||
Reference in New Issue
Block a user