From 790feb62a238afc051aa96d9879e96a829e8fb23 Mon Sep 17 00:00:00 2001 From: Sasha Zakablukov <38879804+AlexZakablukov@users.noreply.github.com> Date: Wed, 8 Jun 2022 17:08:24 +0300 Subject: [PATCH] refactor(call): remove unnecessary code --- components/views/user/User.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/views/user/User.vue b/components/views/user/User.vue index d9f095754e..7228b08024 100644 --- a/components/views/user/User.vue +++ b/components/views/user/User.vue @@ -57,7 +57,7 @@ export default Vue.extend({ ...mapGetters('textile', ['getConversation']), ...mapGetters('settings', ['getTimestamp']), contextMenuValues(): ContextMenuItem[] { - return this.user.state === 'online' + return this.enableRTC ? [ { text: this.$t('context.send'), func: this.navigateToUser }, { text: this.$t('context.voice'), func: this.handleCall }, @@ -125,9 +125,6 @@ export default Vue.extend({ this.$store.commit('ui/toggleContextMenu', false) }, methods: { - // testFunc() { - // this.$Logger.log('User Context', 'Test func') - // }, async call(kinds: TrackKind[]) { if (!this.enableRTC) { return