Skip to content

Commit

Permalink
Add pending todo;
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen committed Jan 21, 2025
1 parent 26e51da commit aea145b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ export const useChatSocketHandler = () => {
...m,
fileMetadata: {
...m.fileMetadata,
// updated:
// Object.values(m.serverMetadata?.transferHistory?.recipients || []).reduce((acc, cur) => {
// return Math.max(acc, cur.lastUpdated || 0);
// }, 0) ||
// m.fileMetadata.updated ||
// 0,
// TODO: Find a way to use the most up to date transfer history
updated: m.fileMetadata.updated || 0,
},
}));
Expand Down

0 comments on commit aea145b

Please sign in to comment.