@dubsdotapp/expo 0.2.78 → 0.2.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3709,6 +3709,7 @@ function UserProfileSheet({
3709
3709
  }) {
3710
3710
  const t = useDubsTheme();
3711
3711
  const { client } = useDubs();
3712
+ const { refreshUser } = useAuth();
3712
3713
  const push = usePushNotifications();
3713
3714
  const overlayOpacity = (0, import_react20.useRef)(new import_react_native11.Animated.Value(0)).current;
3714
3715
  const parsed = (0, import_react20.useMemo)(() => parseAvatarUrl(user.avatar), [user.avatar]);
@@ -3739,13 +3740,14 @@ function UserProfileSheet({
3739
3740
  setError(null);
3740
3741
  try {
3741
3742
  await client.updateProfile({ avatar: newUrl });
3743
+ await refreshUser();
3742
3744
  onAvatarUpdated?.(newUrl);
3743
3745
  } catch (err) {
3744
3746
  setError(err instanceof Error ? err.message : "Failed to update avatar");
3745
3747
  } finally {
3746
3748
  setSaving(false);
3747
3749
  }
3748
- }, [client, onAvatarUpdated]);
3750
+ }, [client, refreshUser, onAvatarUpdated]);
3749
3751
  const handleStyleChange = (0, import_react20.useCallback)((style) => {
3750
3752
  setAvatarStyle(style);
3751
3753
  saveAvatar(getAvatarUrl(style, avatarSeed, bgColor));