@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dubsdotapp/expo",
3
- "version": "0.5.25",
3
+ "version": "0.5.26",
4
4
  "description": "React Native SDK for the Dubs betting platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -184,12 +184,22 @@ export function ChatProvider({ children, autoConnect = true }: ChatProviderProps
184
184
  // What's New posts: a developer published a new one for this app
185
185
  if (n.type === 'whats_new') refreshWhatsNew();
186
186
  },
187
+ // These events now fan out to BOTH parties (server emits to actor's
188
+ // own room as well), so each handler refreshes every list that could
189
+ // be affected — works whether this client is the actor or the target.
187
190
  onFriendRequestAccepted: () => {
188
191
  refreshFriends();
192
+ refreshPendingRequests();
193
+ refreshSentFriendRequests();
194
+ },
195
+ onFriendRequestDeclined: () => {
196
+ refreshPendingRequests();
197
+ refreshSentFriendRequests();
198
+ },
199
+ onFriendRequestCancelled: () => {
200
+ refreshPendingRequests();
189
201
  refreshSentFriendRequests();
190
202
  },
191
- onFriendRequestDeclined: () => refreshSentFriendRequests(),
192
- onFriendRequestCancelled: () => refreshPendingRequests(),
193
203
  onFriendRemoved: () => refreshFriends(),
194
204
  });
195
205