Page MenuHomePhabricator

D7548.diff
No OneTemporary

D7548.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
Sun, Dec 1, 10:30 PM (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606213
Default Alt Text
D7548.diff (1021 B)

Event Timeline