From faf07be17a8bff21bc14c6d529616f23044c3ba8 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 28 Sep 2016 20:00:08 +0300 Subject: [PATCH] fix chat on mobile --- lib/persona.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/persona.js b/lib/persona.js index 41f2647..99d2a79 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -25,12 +25,12 @@ $(document).ready(function() { NProgress.done(); setupHoverCards(); - if (data.url && data.url.match('user/')) { - setupFavouriteButtonOnProfile(); - } else if (data.url && data.url.match('^chats')) { + if (data.url && data.url.match('^user/.+/chats')) { require(['persona/chats'], function(chats) { chats.init(); }); + } else if (data.url && data.url.match('user/')) { + setupFavouriteButtonOnProfile(); } }); }