Show notification on screenshare start in adhoc call
This commit is contained in:
parent
22192a4037
commit
1a4bc49563
7 changed files with 114 additions and 32 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue