use note capture

This commit is contained in:
fly_mc 2024-11-10 11:41:15 +08:00
parent dc5a52b75b
commit 465a710b4b

View file

@ -19,7 +19,7 @@ export function useNoteCapture(props: {
onDeleteCallback?: (id: Misskey.entities.Note['id']) => void | Promise<void>; onDeleteCallback?: (id: Misskey.entities.Note['id']) => void | Promise<void>;
}) { }) {
const note = props.note; const note = props.note;
const pureNote = props.pureNote; const pureNote = props.pureNote !== undefined ? props.pureNote : props.note;
const connection = $i ? useStream() : null; const connection = $i ? useStream() : null;
async function onStreamNoteUpdated(noteData): Promise<void> { async function onStreamNoteUpdated(noteData): Promise<void> {