This commit is contained in:
tamaina 2023-07-30 10:15:38 +00:00
parent 0c75d9a9f9
commit 73f7972d62
1 changed files with 5 additions and 3 deletions

View File

@ -164,15 +164,16 @@ export class NoteManager {
executeInterruptor: () => Promise<void>,
} {
const note = this.get(id);
const interruptedNote = ref<Note | null>(unref(note));
const interruptedNote = ref<Note | null>(note.value);
async function executeInterruptor() {
if (note.value == null) {
interruptedNote.value = null;
return;
}
if (noteViewInterruptors.length > 0) {
interruptedNote.value = unref(note);
if (noteViewInterruptors.length === 0) {
interruptedNote.value = note.value;
return;
}
@ -196,6 +197,7 @@ export class NoteManager {
*/
public getNoteViewBase(id: string) {
const { interruptedNote: note, interruptorUnwatch, executeInterruptor } = this.getInterrupted(id);
//const note = this.get(id);
const isRenote = computed(() => (
note.value != null &&
note.value.renote != null &&