fix calls

This commit is contained in:
ThatOneCalculator 2023-03-16 18:45:35 -07:00
parent 3955b12af0
commit 3bac2a8b86
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 3 additions and 3 deletions

View File

@ -81,18 +81,18 @@ export function getNoteMenu(props: {
function muteThread(): void { function muteThread(): void {
// show global settings by default // show global settings by default
const includingTypes = foundkey.notificationTypes.filter(x => !$i.mutingNotificationTypes.includes(x)); const includingTypes = misskey.notificationTypes.filter(x => !$i.mutingNotificationTypes.includes(x));
os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSettingWindow.vue')), { os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSettingWindow.vue')), {
includingTypes, includingTypes,
showGlobalToggle: false, showGlobalToggle: false,
message: i18n.ts.threadMuteNotificationsDesc, message: i18n.ts.threadMuteNotificationsDesc,
notificationTypes: foundkey.noteNotificationTypes, notificationTypes: misskey.noteNotificationTypes,
}, { }, {
done: async (res) => { done: async (res) => {
const { includingTypes: value } = res; const { includingTypes: value } = res;
let mutingNotificationTypes: string[] | undefined; let mutingNotificationTypes: string[] | undefined;
if (value != null) { if (value != null) {
mutingNotificationTypes = foundkey.noteNotificationTypes.filter(x => !value.includes(x)) mutingNotificationTypes = misskey.noteNotificationTypes.filter(x => !value.includes(x))
} }
await os.apiWithDialog('notes/thread-muting/create', { await os.apiWithDialog('notes/thread-muting/create', {