I meant finally, not then, thanks fEmber
This commit is contained in:
@@ -438,7 +438,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
}
|
||||
} else if (!appearNote.value.channel || appearNote.value.channel.allowRenoteToExternal) {
|
||||
const el = renoteButton.value as HTMLElement | null | undefined;
|
||||
@@ -457,7 +457,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => renoting = false);
|
||||
}).finally(() => renoting = false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
} else if (!appearNote.value.channel || appearNote.value.channel.allowRenoteToExternal) {
|
||||
const el = renoteButton.value as HTMLElement | null | undefined;
|
||||
if (el) {
|
||||
@@ -476,7 +476,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -439,7 +439,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
}
|
||||
} else if (!appearNote.value.channel || appearNote.value.channel.allowRenoteToExternal) {
|
||||
const el = renoteButton.value as HTMLElement | null | undefined;
|
||||
@@ -458,7 +458,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -468,7 +468,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
} else if (!appearNote.value.channel || appearNote.value.channel.allowRenoteToExternal) {
|
||||
const el = renoteButton.value as HTMLElement | null | undefined;
|
||||
if (el) {
|
||||
@@ -485,7 +485,7 @@ function renote(visibility: Visibility, localOnly: boolean = false) {
|
||||
}).then(() => {
|
||||
os.toast(i18n.ts.renoted);
|
||||
renoted.value = true;
|
||||
}).then(() => { renoting = false });
|
||||
}).finally(() => { renoting = false });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user