Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3156855
D7548.id25444.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1021 B
Referenced Files
None
Subscribers
None
D7548.id25444.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7548: [native] change type for useProcessSelectedMedia from MediaLibrarySelection to NativeMediaSelection
Attached
Detach File
Event Timeline
Log In to Comment