diff --git a/client/components/ChatInput.vue b/client/components/ChatInput.vue
index d10f0305..609707f7 100644
--- a/client/components/ChatInput.vue
+++ b/client/components/ChatInput.vue
@@ -30,7 +30,7 @@
id="upload"
type="button"
aria-label="Upload file"
- :disabled="!this.$root.isConnected"
+ :disabled="!$store.state.isConnected"
/>
@@ -187,7 +187,7 @@ export default {
this.$refs.input.click();
this.$refs.input.focus();
- if (!this.$root.isConnected) {
+ if (!$store.state.isConnected) {
return false;
}
diff --git a/client/components/MessageList.vue b/client/components/MessageList.vue
index 710485bc..237de9be 100644
--- a/client/components/MessageList.vue
+++ b/client/components/MessageList.vue
@@ -3,7 +3,7 @@