Skip to content

Commit

Permalink
refactor: 名前変更 initMuteInfo initWordMuteInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-cha committed Feb 4, 2025
1 parent cc1fdec commit ca30df4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/boot/main-boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { emojiPicker } from '@/scripts/emoji-picker.js';
import { mainRouter } from '@/router/main.js';
import { type Keymap, makeHotkey } from '@/scripts/hotkey.js';
import { addCustomEmoji, removeCustomEmojis, updateCustomEmojis } from '@/custom-emojis.js';
import { initMuteInfo } from '@/scripts/check-word-mute.js';
import { initWordMuteInfo } from '@/scripts/check-word-mute.js';

export async function mainBoot() {
const { isClientUpdated } = await common(() => {
Expand Down Expand Up @@ -344,14 +344,14 @@ export async function mainBoot() {
}
}

initMuteInfo();
initWordMuteInfo();

const main = markRaw(stream.useChannel('main', null, 'System'));

// 自分の情報が更新されたとき
main.on('meUpdated', i => {
updateAccountPartial(i);
initMuteInfo();
initWordMuteInfo();
});

main.on('readAllNotifications', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/scripts/check-word-mute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function getWordMuteInfo(): GlobalMisskeyWordMute | undefined {
return globalThis._misskeyWordMute as unknown as GlobalMisskeyWordMute;
}

export function initMuteInfo(): void {
export function initWordMuteInfo(): void {
const mutedWords = $i?.mutedWords ?? [];
const hardMutedWords = $i?.hardMutedWords ?? [];

Expand Down

0 comments on commit ca30df4

Please sign in to comment.