Show app name in receiver selector if known based on app ID

This commit is contained in:
hensm
2020-01-13 23:09:54 +00:00
parent 2154fe4beb
commit a23ae9efa8
11 changed files with 89 additions and 13 deletions

View File

@@ -54,7 +54,8 @@ async function getSelection (
, availableMediaTypes =
ReceiverSelectorMediaType.Tab
| ReceiverSelectorMediaType.Screen
| ReceiverSelectorMediaType.File)
| ReceiverSelectorMediaType.File
, requestedAppId: string)
: Promise<ReceiverSelection> {
return new Promise(async (resolve, reject) => {
@@ -104,7 +105,8 @@ async function getSelection (
sharedSelector.open(
Array.from(StatusManager.getReceivers())
, defaultMediaType
, availableMediaTypes);
, availableMediaTypes
, requestedAppId);
});
}