@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.js CHANGED
@@ -8882,12 +8882,22 @@ function ChatProvider({ children, autoConnect = true }) {
8882
8882
  if (n.type === "friend_request_declined") refreshSentFriendRequests();
8883
8883
  if (n.type === "whats_new") refreshWhatsNew();
8884
8884
  },
8885
+ // These events now fan out to BOTH parties (server emits to actor's
8886
+ // own room as well), so each handler refreshes every list that could
8887
+ // be affected — works whether this client is the actor or the target.
8885
8888
  onFriendRequestAccepted: () => {
8886
8889
  refreshFriends();
8890
+ refreshPendingRequests();
8891
+ refreshSentFriendRequests();
8892
+ },
8893
+ onFriendRequestDeclined: () => {
8894
+ refreshPendingRequests();
8895
+ refreshSentFriendRequests();
8896
+ },
8897
+ onFriendRequestCancelled: () => {
8898
+ refreshPendingRequests();
8887
8899
  refreshSentFriendRequests();
8888
8900
  },
8889
- onFriendRequestDeclined: () => refreshSentFriendRequests(),
8890
- onFriendRequestCancelled: () => refreshPendingRequests(),
8891
8901
  onFriendRemoved: () => refreshFriends()
8892
8902
  });
8893
8903
  chatSocket.connect({ host, token });