summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDorraJaouad <dorra.jaoued7@gmail.com>2024-06-19 18:50:32 +0200
committerDorraJaouad <dorra.jaoued7@gmail.com>2024-06-19 18:50:32 +0200
commit8184f4e775501206b572accd114bb3ac0b270948 (patch)
treeaadfb26bb580b3426f2876fbe6eaec225c0888f9 /src
parent1b205e1b3e29ffddf909404ed9cdd58a8d64c99d (diff)
fix(CallTime): stop showing hint for late call joiners.
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/TopBar/CallTime.vue10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/components/TopBar/CallTime.vue b/src/components/TopBar/CallTime.vue
index eab5dd049..f1a098bdc 100644
--- a/src/components/TopBar/CallTime.vue
+++ b/src/components/TopBar/CallTime.vue
@@ -70,6 +70,8 @@ import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js'
import { CALL } from '../../constants.js'
import { formattedTime } from '../../utils/formattedTime.ts'
+const ONE_HOUR_MS = 60 * 60 * 1000
+
export default {
name: 'CallTime',
@@ -97,7 +99,6 @@ export default {
showPopover: false,
isCallDurationHintShown: false,
timer: null,
- untilCallDurationHintShown: null,
}
},
@@ -154,11 +155,8 @@ export default {
watch: {
callTime(value) {
- if (value && !this.untilCallDurationHintShown) {
- this.untilCallDurationHintShown = (1000 * 60 * 60) - value + 1000
- setTimeout(() => {
- this.showCallDurationHint()
- }, this.untilCallDurationHintShown)
+ if (value > ONE_HOUR_MS && value < (ONE_HOUR_MS + 10000) && !this.isCallDurationHintShown) {
+ this.showCallDurationHint()
}
},
},