Skip to content

Commit

Permalink
fix: omit show me in entry history
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 18, 2024
1 parent a409752 commit 409306b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/src/modules/entry-content/read-history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({
const entryHistory = useEntryReadHistory(entryId)

if (!entryHistory) return null

if (!me) return null
if (!entryHistory.userIds) return null

return (
<div className="flex items-center">
{[me.id]
.concat(entryHistory.userIds?.filter((id) => id !== me?.id) ?? []) // then others
{entryHistory.userIds
.filter((id) => id !== me?.id)
.slice(0, 10)

.map((userId, i) => (
Expand Down

0 comments on commit 409306b

Please sign in to comment.