From 1313c50df2560e62bcc7daac7779057d364fc33e Mon Sep 17 00:00:00 2001 From: Nithin David Thomas Date: Mon, 2 Sep 2019 20:26:28 +0530 Subject: [PATCH] Resurrection of the broken pusher (#25) --- app/javascript/packs/application.js | 2 +- app/javascript/src/components/ChatList.vue | 55 ++++++++++++------- app/javascript/src/components/ui/Wizard.vue | 43 ++++++++++----- .../widgets/conversation/ConversationBox.vue | 2 +- app/javascript/src/helper/pusher.js | 13 +++-- 5 files changed, 74 insertions(+), 41 deletions(-) diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index d2b1e86d7..462261a79 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -56,5 +56,5 @@ window.onload = () => { components: { App }, template: '', }).$mount('#app'); + window.pusher = vuePusher.init(); }; -window.pusher = vuePusher.init(); diff --git a/app/javascript/src/components/ChatList.vue b/app/javascript/src/components/ChatList.vue index eb408c84a..32d12f8b5 100644 --- a/app/javascript/src/components/ChatList.vue +++ b/app/javascript/src/components/ChatList.vue @@ -1,37 +1,52 @@