fix
This commit is contained in:
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user