Skip to content

Commit

Permalink
fixup! comment
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Sep 11, 2024
1 parent a6a3de1 commit 60c6bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/callViewStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ const actions = {
},

setCallHasJustEnded(context, timestamp) {
// Check the time difference between the current time and the call end time
// If lesser than 10 seconds, disable the callButton for that amount of time
// Check the time difference between the current time and the call end time.
// Then, disable the CallButton for the remaining time until 10 seconds after the call ends.
const timeDiff = Math.abs(Date.now() / 1000 - timestamp)
if (10000 - timeDiff < 0) {
return
Expand Down

0 comments on commit 60c6bd9

Please sign in to comment.