Skip to content

Commit

Permalink
show MediaSettings if URL contains 'call/{token}#direct-call'
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Oct 17, 2023
1 parent 6de7100 commit 0f3b373
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ export default {
} else if (to.name === 'notfound') {
this.setPageTitle('')
}

if (to.hash === '#direct-call') {
console.log(this.$store.getters.conversation(to.params.token))

Check failure on line 458 in src/App.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 4 tabs but found 8 spaces

Check failure on line 458 in src/App.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected console statement
emit('talk:media-settings:show')
}
})

if (getCurrentUser()) {
Expand Down Expand Up @@ -481,6 +486,11 @@ export default {
})
}

if (this.$route.hash === '#direct-call') {
console.log(this.$store.getters.conversation(this.$route.params.token))

Check failure on line 490 in src/App.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 3 tabs but found 6 spaces

Check failure on line 490 in src/App.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected console statement
emit('talk:media-settings:show')
}

subscribe('notifications:action:execute', this.interceptNotificationActions)
subscribe('notifications:notification:received', this.interceptNotificationReceived)
},
Expand All @@ -507,12 +517,12 @@ export default {
return
}

const [token, messageId] = load.split('#message_')
const [token, hash] = load.split('#')
this.$router.push({
name: 'conversation',
hash: hash ? `#${hash}` : '',
params: {
token,
hash: messageId ? `#message_${messageId}` : '',
},
})

Expand Down

0 comments on commit 0f3b373

Please sign in to comment.