Skip to content

Commit 53b8a8f

Browse files
committed
fix: revert CHANNEL_LIST_PARAMS_UPDATED payload
1 parent 9d8d8b3 commit 53b8a8f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/modules/ChannelList/dux/actionTypes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ type CHANNEL_LIST_PAYLOAD_TYPES = {
7070
[CHANNEL_REPLACED_TO_TOP]: GroupChannel;
7171
[CHANNEL_LIST_PARAMS_UPDATED]: {
7272
channelListQuery: GroupChannelListQuery;
73+
currentUserId?: string,
7374
};
7475
};
7576

src/modules/ChannelList/dux/reducers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ export default function channelListReducer(
296296
.with({ type: channelListActions.CHANNEL_LIST_PARAMS_UPDATED }, (action) => ({
297297
...state,
298298
channelListQuery: action.payload.channelListQuery,
299+
currentUserId: action.payload.currentUserId,
299300
}))
300301
.otherwise(() => state)
301302
);

src/modules/ChannelList/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ function setupChannelList({
205205
type: channelActions.CHANNEL_LIST_PARAMS_UPDATED,
206206
payload: {
207207
channelListQuery,
208+
currentUserId: sdk?.currentUser?.userId ?? '',
208209
},
209210
});
210211
}

0 commit comments

Comments
 (0)