(
notes: Note[],
identity: { author: string; authorId?: string },
)
| 143 | } |
| 144 | |
| 145 | export function markOwnNotes( |
| 146 | notes: Note[], |
| 147 | identity: { author: string; authorId?: string }, |
| 148 | ): Note[] { |
| 149 | return notes.map(note => ({ |
| 150 | ...note, |
| 151 | isOwn: note.authorId ? note.authorId === identity.authorId : note.author === identity.author, |
| 152 | })); |
| 153 | } |
no test coverage detected