Update MkNotifications.vue

This commit is contained in:
syuilo 2025-04-29 17:51:45 +09:00
parent 6719342609
commit 286492d5eb
1 changed files with 1 additions and 3 deletions

View File

@ -41,7 +41,6 @@ SPDX-License-Identifier: AGPL-3.0-only
import { onUnmounted, onMounted, computed, useTemplateRef, TransitionGroup } from 'vue';
import * as Misskey from 'misskey-js';
import { useInterval } from '@@/js/use-interval.js';
import { isHeadVisible } from '@@/js/scroll.js';
import type { notificationTypes } from '@@/js/const.js';
import XNotification from '@/components/MkNotification.vue';
import MkNote from '@/components/MkNote.vue';
@ -79,9 +78,8 @@ const POLLING_INTERVAL = 1000 * 15;
if (!store.s.realtimeMode) {
useInterval(async () => {
const isTop = rootEl.value == null ? false : isHeadVisible(rootEl.value, 16);
paginator.fetchNewer({
toQueue: !isTop,
toQueue: false,
});
}, POLLING_INTERVAL, {
immediate: false,