fix chat on mobile

main
barisusakli 8 years ago
parent e22786fad2
commit faf07be17a

@ -25,12 +25,12 @@ $(document).ready(function() {
NProgress.done(); NProgress.done();
setupHoverCards(); setupHoverCards();
if (data.url && data.url.match('user/')) { if (data.url && data.url.match('^user/.+/chats')) {
setupFavouriteButtonOnProfile();
} else if (data.url && data.url.match('^chats')) {
require(['persona/chats'], function(chats) { require(['persona/chats'], function(chats) {
chats.init(); chats.init();
}); });
} else if (data.url && data.url.match('user/')) {
setupFavouriteButtonOnProfile();
} }
}); });
} }

Loading…
Cancel
Save