Page MenuHomePhabricator

D11859.id40270.diff
No OneTemporary

D11859.id40270.diff

diff --git a/lib/actions/aux-user-actions.js b/lib/actions/aux-user-actions.js
--- a/lib/actions/aux-user-actions.js
+++ b/lib/actions/aux-user-actions.js
@@ -1,13 +1,13 @@
// @flow
-const setFarcasterFriendsFIDActionType = 'SET_FARCASTER_FRIENDS_FID';
+const setAuxUserFIDsActionType = 'SET_AUX_USER_FIDS';
const clearAuxUserFIDsActionType = 'CLEAR_AUX_USER_FIDS';
const setPeerDeviceListsActionType = 'SET_PEER_DEVICE_LISTS';
export {
- setFarcasterFriendsFIDActionType,
+ setAuxUserFIDsActionType,
clearAuxUserFIDsActionType,
setPeerDeviceListsActionType,
};
diff --git a/lib/reducers/aux-user-reducer.js b/lib/reducers/aux-user-reducer.js
--- a/lib/reducers/aux-user-reducer.js
+++ b/lib/reducers/aux-user-reducer.js
@@ -1,7 +1,7 @@
// @flow
import {
- setFarcasterFriendsFIDActionType,
+ setAuxUserFIDsActionType,
clearAuxUserFIDsActionType,
setPeerDeviceListsActionType,
} from '../actions/aux-user-actions.js';
@@ -23,7 +23,7 @@
+auxUserStore: AuxUserStore,
+auxUserStoreOperations: $ReadOnlyArray<AuxUserStoreOperation>,
} {
- if (action.type === setFarcasterFriendsFIDActionType) {
+ if (action.type === setAuxUserFIDsActionType) {
const replaceOperations: ReplaceAuxUserInfoOperation[] = [];
for (const farcasterUser of action.payload.farcasterUsers) {
replaceOperations.push({
diff --git a/lib/reducers/aux-user-reducer.test.js b/lib/reducers/aux-user-reducer.test.js
--- a/lib/reducers/aux-user-reducer.test.js
+++ b/lib/reducers/aux-user-reducer.test.js
@@ -2,7 +2,7 @@
import { reduceAuxUserStore } from './aux-user-reducer.js';
import {
- setFarcasterFriendsFIDActionType,
+ setAuxUserFIDsActionType,
setPeerDeviceListsActionType,
} from '../actions/aux-user-actions.js';
import type { RawDeviceList } from '../types/identity-service-types.js';
@@ -16,7 +16,7 @@
};
const updateAuxUserInfosAction = {
- type: setFarcasterFriendsFIDActionType,
+ type: setAuxUserFIDsActionType,
payload: {
farcasterUsers: [
{
diff --git a/lib/types/aux-user-types.js b/lib/types/aux-user-types.js
--- a/lib/types/aux-user-types.js
+++ b/lib/types/aux-user-types.js
@@ -14,7 +14,7 @@
+auxUserInfos: AuxUserInfos,
};
-export type SetFarcasterFriendsFIDPayload = {
+export type SetAuxUserFIDsPayload = {
+farcasterUsers: $ReadOnlyArray<FarcasterUser>,
};
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -18,7 +18,7 @@
import type { AlertStore, RecordAlertActionPayload } from './alert-types.js';
import type {
AuxUserStore,
- SetFarcasterFriendsFIDPayload,
+ SetAuxUserFIDsPayload,
SetPeerDeviceListsPayload,
} from './aux-user-types.js';
import type {
@@ -1387,8 +1387,8 @@
+payload: SetActiveSessionRecoveryPayload,
}
| {
- +type: 'SET_FARCASTER_FRIENDS_FID',
- +payload: SetFarcasterFriendsFIDPayload,
+ +type: 'SET_AUX_USER_FIDS',
+ +payload: SetAuxUserFIDsPayload,
}
| {
+type: 'CLEAR_AUX_USER_FIDS',

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 12:13 AM (5 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2597739
Default Alt Text
D11859.id40270.diff (3 KB)

Event Timeline