[WEB-5235] Fix activity timeline ordering for edited comments #8002

This commit is contained in:
Vihar Kurama 2025-10-24 11:47:51 +01:00 committed by GitHub
parent 76ffe52cd5
commit a60d74a3c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,10 +112,11 @@ export class IssueActivityStore implements IIssueActivityStore {
comments.forEach((commentId) => {
const comment = currentStore.comment.getCommentById(commentId);
if (!comment) return;
const commentTimestamp = comment.edited_at ?? comment.updated_at ?? comment.created_at;
activityComments.push({
id: comment.id,
activity_type: EActivityFilterType.COMMENT,
created_at: comment.created_at,
created_at: commentTimestamp,
});
});