@amityco/ts-sdk 7.33.2-2476596b.0 → 7.33.2-4f6a964.0
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.cjs.js +5 -3
- package/dist/index.esm.js +5 -3
- package/dist/index.umd.js +1 -1
- package/dist/userRepository/relationship/follow/api/getAllFollowings.d.ts +1 -2
- package/dist/userRepository/relationship/follow/api/getAllFollowings.d.ts.map +1 -1
- package/dist/userRepository/services/FollowingSyncEngine/followRealtimeOnLoginHandler.d.ts +3 -0
- package/dist/userRepository/services/FollowingSyncEngine/followRealtimeOnLoginHandler.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8585,6 +8585,9 @@ const onLocalUserUnfollowed = (callback) => createLocalFollowEventSubscriber('lo
|
|
|
8585
8585
|
* user as accepted, a request as pending, an accepted request turns accepted, and an
|
|
8586
8586
|
* unfollow, a canceled or declined request, a removed follower or a block takes the user out.
|
|
8587
8587
|
* `blockUser` also calls the engine itself: its local event swaps `from` and `to`.
|
|
8588
|
+
* `user.didBlock` is read here rather than through `onUserDidBlock`, which passes on only
|
|
8589
|
+
* the payload's first follow: every follow in it goes to the engine, as on Android and iOS,
|
|
8590
|
+
* so the signed-in user's block is applied wherever it sits in the payload.
|
|
8588
8591
|
* The MQTT events arrive on the followers and followings topics of the BLOCK
|
|
8589
8592
|
* auto-subscription (on by default).
|
|
8590
8593
|
*
|
|
@@ -8602,7 +8605,7 @@ var followRealtimeOnLoginHandler = () => {
|
|
|
8602
8605
|
onFollowRequestCanceled(apply),
|
|
8603
8606
|
onFollowRequestDeclined(apply),
|
|
8604
8607
|
onFollowerDeleted(apply),
|
|
8605
|
-
|
|
8608
|
+
createEventSubscriber(getActiveClient(), 'user.didBlock', 'user.didBlock', payload => { var _a; return ((_a = payload === null || payload === void 0 ? void 0 : payload.follows) !== null && _a !== void 0 ? _a : []).forEach(apply); }),
|
|
8606
8609
|
onLocalUserFollowed(apply),
|
|
8607
8610
|
onLocalFollowerRequested(apply),
|
|
8608
8611
|
onLocalUserUnfollowed(apply),
|
|
@@ -11788,8 +11791,7 @@ const declineMyFollower = async (userId) => {
|
|
|
11788
11791
|
* author by user id against `userId`.
|
|
11789
11792
|
*
|
|
11790
11793
|
* Keeping the app current: the function answers once, so call it again to see changes —
|
|
11791
|
-
* for example when more posts load
|
|
11792
|
-
* event (`onUserFollowed`, `onUserUnfollowed`, `onFollowRequestAccepted`). The answer is
|
|
11794
|
+
* for example when more posts load or when the feed comes back into view. The answer is
|
|
11793
11795
|
* kept on the device for 5 minutes, so a call within that window costs no request. Changes
|
|
11794
11796
|
* made in this app show at once. Changes made elsewhere — on another device, or by the
|
|
11795
11797
|
* other user accepting a request or removing the user as a follower — show once their
|
package/dist/index.esm.js
CHANGED
|
@@ -8585,6 +8585,9 @@ const onLocalUserUnfollowed = (callback) => createLocalFollowEventSubscriber('lo
|
|
|
8585
8585
|
* user as accepted, a request as pending, an accepted request turns accepted, and an
|
|
8586
8586
|
* unfollow, a canceled or declined request, a removed follower or a block takes the user out.
|
|
8587
8587
|
* `blockUser` also calls the engine itself: its local event swaps `from` and `to`.
|
|
8588
|
+
* `user.didBlock` is read here rather than through `onUserDidBlock`, which passes on only
|
|
8589
|
+
* the payload's first follow: every follow in it goes to the engine, as on Android and iOS,
|
|
8590
|
+
* so the signed-in user's block is applied wherever it sits in the payload.
|
|
8588
8591
|
* The MQTT events arrive on the followers and followings topics of the BLOCK
|
|
8589
8592
|
* auto-subscription (on by default).
|
|
8590
8593
|
*
|
|
@@ -8602,7 +8605,7 @@ var followRealtimeOnLoginHandler = () => {
|
|
|
8602
8605
|
onFollowRequestCanceled(apply),
|
|
8603
8606
|
onFollowRequestDeclined(apply),
|
|
8604
8607
|
onFollowerDeleted(apply),
|
|
8605
|
-
|
|
8608
|
+
createEventSubscriber(getActiveClient(), 'user.didBlock', 'user.didBlock', payload => { var _a; return ((_a = payload === null || payload === void 0 ? void 0 : payload.follows) !== null && _a !== void 0 ? _a : []).forEach(apply); }),
|
|
8606
8609
|
onLocalUserFollowed(apply),
|
|
8607
8610
|
onLocalFollowerRequested(apply),
|
|
8608
8611
|
onLocalUserUnfollowed(apply),
|
|
@@ -11788,8 +11791,7 @@ const declineMyFollower = async (userId) => {
|
|
|
11788
11791
|
* author by user id against `userId`.
|
|
11789
11792
|
*
|
|
11790
11793
|
* Keeping the app current: the function answers once, so call it again to see changes —
|
|
11791
|
-
* for example when more posts load
|
|
11792
|
-
* event (`onUserFollowed`, `onUserUnfollowed`, `onFollowRequestAccepted`). The answer is
|
|
11794
|
+
* for example when more posts load or when the feed comes back into view. The answer is
|
|
11793
11795
|
* kept on the device for 5 minutes, so a call within that window costs no request. Changes
|
|
11794
11796
|
* made in this app show at once. Changes made elsewhere — on another device, or by the
|
|
11795
11797
|
* other user accepting a request or removing the user as a follower — show once their
|