Page MenuHomePhabricator

D8758.diff
No OneTemporary

D8758.diff

diff --git a/lib/components/base-edit-thread-avatar-provider.react.js b/lib/components/base-edit-thread-avatar-provider.react.js
--- a/lib/components/base-edit-thread-avatar-provider.react.js
+++ b/lib/components/base-edit-thread-avatar-provider.react.js
@@ -36,7 +36,6 @@
React.createContext<?EditThreadAvatarContextType>();
type Props = {
- +displayFailureAlert: () => mixed,
+useUploadSelectedMedia: (
setProcessingOrUploadInProgress?: (inProgress: boolean) => mixed,
) => (selection: NativeMediaSelection) => Promise<?ImageAvatarDBContent>,
diff --git a/native/avatars/native-edit-thread-avatar-provider.react.js b/native/avatars/native-edit-thread-avatar-provider.react.js
--- a/native/avatars/native-edit-thread-avatar-provider.react.js
+++ b/native/avatars/native-edit-thread-avatar-provider.react.js
@@ -7,15 +7,6 @@
import { useUploadSelectedMedia } from './avatar-hooks.js';
import { activeThreadSelector } from '../navigation/nav-selectors.js';
import { NavContext } from '../navigation/navigation-context.js';
-import Alert from '../utils/alert.js';
-
-const displayAvatarUpdateFailureAlert = () =>
- Alert.alert(
- 'Couldn’t save avatar',
- 'Please try again later',
- [{ text: 'OK' }],
- { cancelable: true },
- );
type Props = {
+children: React.Node,
@@ -31,7 +22,6 @@
return (
<BaseEditThreadAvatarProvider
- displayFailureAlert={displayAvatarUpdateFailureAlert}
useUploadSelectedMedia={useUploadSelectedMedia}
activeThreadID={activeThreadID}
>

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 4:21 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2513276
Default Alt Text
D8758.diff (1 KB)

Event Timeline