@dubsdotapp/expo 0.5.25 → 0.5.26

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.mjs CHANGED
@@ -8909,12 +8909,22 @@ function ChatProvider({ children, autoConnect = true }) {
8909
8909
  if (n.type === "friend_request_declined") refreshSentFriendRequests();
8910
8910
  if (n.type === "whats_new") refreshWhatsNew();
8911
8911
  },
8912
+ // These events now fan out to BOTH parties (server emits to actor's
8913
+ // own room as well), so each handler refreshes every list that could
8914
+ // be affected — works whether this client is the actor or the target.
8912
8915
  onFriendRequestAccepted: () => {
8913
8916
  refreshFriends();
8917
+ refreshPendingRequests();
8918
+ refreshSentFriendRequests();
8919
+ },
8920
+ onFriendRequestDeclined: () => {
8921
+ refreshPendingRequests();
8922
+ refreshSentFriendRequests();
8923
+ },
8924
+ onFriendRequestCancelled: () => {
8925
+ refreshPendingRequests();
8914
8926
  refreshSentFriendRequests();
8915
8927
  },
8916
- onFriendRequestDeclined: () => refreshSentFriendRequests(),
8917
- onFriendRequestCancelled: () => refreshPendingRequests(),
8918
8928
  onFriendRemoved: () => refreshFriends()
8919
8929
  });
8920
8930
  chatSocket.connect({ host, token });