From 0f3b3730e86ac5f5d5f55a6eaa6ff03c7ca88d91 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Tue, 17 Oct 2023 18:31:26 +0200 Subject: [PATCH] show MediaSettings if URL contains 'call/{token}#direct-call' Signed-off-by: Maksim Sukharev --- src/App.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 544e5995606f..bffa93ca49fc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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)) + emit('talk:media-settings:show') + } }) if (getCurrentUser()) { @@ -481,6 +486,11 @@ export default { }) } + if (this.$route.hash === '#direct-call') { + console.log(this.$store.getters.conversation(this.$route.params.token)) + emit('talk:media-settings:show') + } + subscribe('notifications:action:execute', this.interceptNotificationActions) subscribe('notifications:notification:received', this.interceptNotificationReceived) }, @@ -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}` : '', }, })