Skip to content

Commit

Permalink
refactor(call): remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZakablukov authored and stavares843 committed Jun 9, 2022
1 parent 0f8d100 commit 790feb6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/views/user/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 790feb6

Please sign in to comment.