From 5eede87d23997dbf821605b5e1792b99e68fa843 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 4 Dec 2015 15:48:52 -0500 Subject: [PATCH] nodebb/nodebb#3915 --- lib/persona.js | 4 ++++ plugin.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/persona.js b/lib/persona.js index aec7c3b..2c405ca 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -27,6 +27,10 @@ $(document).ready(function() { if (data.url.match('user/')) { setupFavouriteButtonOnProfile(); + } else if (data.url.match('^chats')) { + require(['persona/chats'], function(chats) { + chats.init(); + }); } }); } diff --git a/plugin.json b/plugin.json index 1664907..4f08c5d 100644 --- a/plugin.json +++ b/plugin.json @@ -5,6 +5,7 @@ "lib/persona.js", "lib/modules/nprogress.js", "lib/modules/autohidingnavbar.min.js", - "lib/modules/slideout.min.js" + "lib/modules/slideout.min.js", + "lib/client/chats.js" ] } \ No newline at end of file