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