Hide call buttons when on call

This commit is contained in:
Evan Hahn 2020-10-30 12:52:21 -05:00 committed by Evan Hahn
parent a7854c6083
commit decc93532b
18 changed files with 622 additions and 366 deletions

3
ts/util/isMuted.ts Normal file
View file

@ -0,0 +1,3 @@
export function isMuted(muteExpiresAt: undefined | number): boolean {
return Boolean(muteExpiresAt && Date.now() < muteExpiresAt);
}