Page MenuHomePhabricator

D13788.id45381.diff
No OneTemporary

D13788.id45381.diff

diff --git a/lib/reducers/thread-reducer.js b/lib/reducers/thread-reducer.js
--- a/lib/reducers/thread-reducer.js
+++ b/lib/reducers/thread-reducer.js
@@ -1,11 +1,17 @@
// @flow
+import invariant from 'invariant';
+
import {
setThreadUnreadStatusActionTypes,
updateActivityActionTypes,
} from '../actions/activity-actions.js';
import { removePeerUsersActionType } from '../actions/aux-user-actions.js';
import { setClientDBStoreActionType } from '../actions/client-db-store-actions.js';
+import {
+ createOrUpdateFarcasterChannelTagActionTypes,
+ deleteFarcasterChannelTagActionTypes,
+} from '../actions/community-actions.js';
import { saveMessagesActionType } from '../actions/message-actions.js';
import { legacySiweAuthActionTypes } from '../actions/siwe-actions.js';
import {
@@ -264,8 +270,17 @@
action.type === newThreadActionTypes.success ||
action.type === modifyCommunityRoleActionTypes.success ||
action.type === deleteCommunityRoleActionTypes.success ||
- action.type === removePeerUsersActionType
+ action.type === removePeerUsersActionType ||
+ action.type === createOrUpdateFarcasterChannelTagActionTypes.success ||
+ action.type === deleteFarcasterChannelTagActionTypes.success
) {
+ if (!action.payload.updatesResult) {
+ return {
+ threadStore: state,
+ newThreadInconsistencies: [],
+ threadStoreOperations: [],
+ };
+ }
const { newUpdates } = action.payload.updatesResult;
if (newUpdates.length === 0) {
return {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 3:08 AM (18 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2567893
Default Alt Text
D13788.id45381.diff (1 KB)

Event Timeline