Page MenuHomePhabricator

Move `native`-specific `uploadSelectedMedia` from `updateImageThreadAvatar` to `nativeUpdateImageThreadAvatar`
ClosedPublic

Authored by atul on Aug 9 2023, 12:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 5:04 PM
Unknown Object (File)
Tue, Dec 17, 10:12 AM
Unknown Object (File)
Tue, Dec 17, 10:12 AM
Unknown Object (File)
Tue, Dec 17, 10:12 AM
Unknown Object (File)
Tue, Dec 17, 10:12 AM
Unknown Object (File)
Tue, Dec 17, 10:05 AM
Unknown Object (File)
Nov 29 2024, 7:56 AM
Unknown Object (File)
Nov 5 2024, 10:47 PM
Subscribers

Details

Summary

We remove the native-specific uploadSelectedMedia call from updateImageThreadAvatar and move it to the native-specific nativeUpdateThreadImageAvatar.

As of this diff, updateImageThreadAvatar now takes (imageAvatarUpdateRequest: ImageAvatarDBContent) rather than the native-specific (selection: NativeMediaSelection).

This diff also eliminates all usages of useUploadSelectedMedia, which means we can remvoe the prop in a subsequent diff at which point EditThreadAvatarProvider will be platform-agnostic.

Test Plan

Continue to be able to set image thread avatars on native as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable