Skip to content

Commit 48cdf72

Browse files
parv_gourparv_gour
authored andcommitted
fix(Space Widget): review comments has been addressed.
1 parent f3f737b commit 48cdf72

File tree

1 file changed

+0
-6
lines changed
  • packages/node_modules/@webex/redux-module-conversation/src

1 file changed

+0
-6
lines changed

packages/node_modules/@webex/redux-module-conversation/src/reducer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ const findOldestPublishedDate = ({activity, published}) =>
122122
const processActivities = ({
123123
activities, threadActivities = {}, nonThreadActivities = [], oldestPublishedDate
124124
}) => {
125-
126125
let ta = threadActivities;
127126
let nta = nonThreadActivities;
128127

@@ -132,15 +131,11 @@ const processActivities = ({
132131

133132
for (const activity of activities) {
134133
published = findOldestPublishedDate({activity, published});
135-
136134
// Split the activities into the correct buckets
137135
const parentId = activity.parent?.id;
138-
139136
if (parentId) {
140137
dirtyThreadList.add(parentId);
141-
142138
const threads = ta[parentId] ?? [];
143-
144139
ta = {...ta};
145140
if(activity.parent.type === 'edit') {
146141
ta[parentId] = markEditedActivity({activity, activities: threads});
@@ -275,7 +270,6 @@ export default function reducer(state = initialState, action) {
275270
const receivedActivity = normalizeActivity(action.payload.activity);
276271
return addActivities({state, addedActivities: [receivedActivity]});
277272
}
278-
279273
case REMOVE_PARTICIPANT: {
280274
const participants = [];
281275

0 commit comments

Comments
 (0)