Page MenuHomePhabricator

D7548.id25444.diff
No OneTemporary

D7548.id25444.diff

diff --git a/native/avatars/avatar-hooks.js b/native/avatars/avatar-hooks.js
--- a/native/avatars/avatar-hooks.js
+++ b/native/avatars/avatar-hooks.js
@@ -28,6 +28,7 @@
} from 'lib/types/avatar-types.js';
import type { LoadingStatus } from 'lib/types/loading-types.js';
import type {
+ NativeMediaSelection,
MediaLibrarySelection,
MediaMissionFailure,
UploadMultimediaResult,
@@ -67,14 +68,14 @@
return uploadProcessedMultimedia;
}
-function useProcessSelectedMedia(): MediaLibrarySelection => Promise<
+function useProcessSelectedMedia(): NativeMediaSelection => Promise<
MediaMissionFailure | MediaResult,
> {
const hasWiFi = useSelector(state => state.connectivity.hasWiFi);
const staffCanSee = useStaffCanSee();
const processSelectedMedia = React.useCallback(
- async (selection: MediaLibrarySelection) => {
+ async (selection: NativeMediaSelection) => {
const { resultPromise } = processMedia(selection, {
hasWiFi,
finalFileHeaderCheck: staffCanSee,

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 5:41 PM (21 h, 59 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2431330
Default Alt Text
D7548.id25444.diff (1021 B)

Event Timeline