@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 +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/chat/provider.tsx +12 -2
package/package.json
CHANGED
package/src/chat/provider.tsx
CHANGED
|
@@ -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
|
|