Refactor screen share picker internals
This commit is contained in:
parent
855b1c03b0
commit
d0b8a2991f
25 changed files with 547 additions and 244 deletions
|
@ -11,7 +11,7 @@ export type PropsType = {
|
|||
onCloseController: () => unknown;
|
||||
onStopSharing: () => unknown;
|
||||
status: ScreenShareStatus;
|
||||
presentedSourceName: string;
|
||||
presentedSourceName: string | undefined;
|
||||
};
|
||||
|
||||
export function CallingScreenSharingController({
|
||||
|
@ -25,10 +25,12 @@ export function CallingScreenSharingController({
|
|||
|
||||
if (status === ScreenShareStatus.Reconnecting) {
|
||||
text = i18n('icu:calling__presenting--reconnecting');
|
||||
} else {
|
||||
} else if (presentedSourceName) {
|
||||
text = i18n('icu:calling__presenting--info', {
|
||||
window: presentedSourceName,
|
||||
});
|
||||
} else {
|
||||
text = i18n('icu:calling__presenting--info--unknown');
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue