From 92a0c475f796989098bf84c813900c0fd89da7d0 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 20 Aug 2019 16:55:42 -0400
Subject: hide mute conversation button to guests
---
src/components/extra_buttons/extra_buttons.js | 3 +++
1 file changed, 3 insertions(+)
(limited to 'src/components/extra_buttons/extra_buttons.js')
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index 2d05ad39..5ac73e97 100644
--- a/src/components/extra_buttons/extra_buttons.js
+++ b/src/components/extra_buttons/extra_buttons.js
@@ -40,6 +40,9 @@ const ExtraButtons = {
},
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
+ },
+ canMute () {
+ return !!this.currentUser
}
}
}
--
cgit v1.2.3-70-g09d2