Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -29,7 +29,7 @@ interface CallDurationProps {
|
|||
export const CallDuration: FC<CallDurationProps> = memo(({ delta }) => {
|
||||
// Clock desync could lead to a negative duration, so just hide it if that happens
|
||||
if (delta <= 0) return null;
|
||||
return <div className="mx_CallDuration">{ formatPreciseDuration(delta) }</div>;
|
||||
return <div className="mx_CallDuration">{formatPreciseDuration(delta)}</div>;
|
||||
});
|
||||
|
||||
interface GroupCallDurationProps {
|
||||
|
@ -47,7 +47,5 @@ export const GroupCallDuration: FC<GroupCallDurationProps> = ({ groupCall }) =>
|
|||
return () => clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
return groupCall.creationTs === null
|
||||
? null
|
||||
: <CallDuration delta={now - groupCall.creationTs} />;
|
||||
return groupCall.creationTs === null ? null : <CallDuration delta={now - groupCall.creationTs} />;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue