Skip to content

Commit

Permalink
fix: オンライン表示のAPIの使用頻度を低減
Browse files Browse the repository at this point in the history
  • Loading branch information
nacika-ins committed May 10, 2024
1 parent 9fb2228 commit d8a746a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/messaging/messaging-room.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ watch(
if (a.id === group?.ownerId || b.id === group?.ownerId) {
return a.id === group?.ownerId ? -1 : 1;
}
return dayjs(a.updatedAt).isBefore(dayjs(b.updatedAt)) ? 1 : -1;
return new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime();
});
// @ts-ignore
groupUsers = users;
Expand Down

0 comments on commit d8a746a

Please sign in to comment.