Skip to content

Commit

Permalink
fix(chat): fix lastActivityDate sorting for public items (Issue #2056) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kezik authored Nov 20, 2024
1 parent bcb2d78 commit 0924288
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/chat/src/store/publication/publication.epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ const uploadPublishedWithMeItemsEpic: AppEpic = (action$, state$) =>
const publicationItems = items.map((item) => ({
...item,
id: item.url,
lastActivityDate: item.updatedAt,
}));

if (selectedConversationsToUpload.length) {
Expand Down Expand Up @@ -1179,6 +1180,7 @@ const uploadAllPublishedWithMeItemsEpic: AppEpic = (action$, state$) =>
const publicationItems = publications.items.map((item) => ({
...item,
id: item.url,
lastActivityDate: item.updatedAt,
}));
const paths = uniq(
publicationItems.flatMap(({ id }) =>
Expand Down

0 comments on commit 0924288

Please sign in to comment.