Show notification on screenshare start in adhoc call

This commit is contained in:
Scott Nonnenberg 2024-08-02 10:01:40 -07:00 committed by GitHub
parent 22192a4037
commit 1a4bc49563
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 114 additions and 32 deletions

View file

@ -7,6 +7,7 @@ import { renderToString } from 'react-dom/server';
import type { AvatarColorType } from '../types/Colors';
import { AvatarColorMap } from '../types/Colors';
import {
IdenticonSVGForCallLink,
IdenticonSVGForContact,
IdenticonSVGForGroup,
} from '../components/IdenticonSVG';
@ -21,6 +22,9 @@ type IdenticonDetailsType =
}
| {
type: 'group';
}
| {
type: 'call-link';
};
export function createIdenticon(
@ -47,6 +51,13 @@ export function createIdenticon(
foregroundColor={avatarColor?.fg || defaultColorValue.fg}
/>
);
} else if (details.type === 'call-link') {
html = renderToString(
<IdenticonSVGForCallLink
backgroundColor={avatarColor?.bg || defaultColorValue.bg}
foregroundColor={avatarColor?.fg || defaultColorValue.fg}
/>
);
} else {
throw missingCaseError(details);
}