This commit is contained in:
syuilo 2025-04-28 16:15:57 +09:00
parent 7d867c8083
commit dc0b197d4a
7 changed files with 13 additions and 34 deletions

4
locales/index.d.ts vendored
View File

@ -4966,10 +4966,6 @@ export interface Locale extends ILocale {
*
*/
"pullDownToRefresh": string;
/**
*
*/
"disableStreamingTimeline": string;
/**
*
*/

View File

@ -1237,7 +1237,6 @@ showAvatarDecorations: "アイコンのデコレーションを表示"
releaseToRefresh: "離してリロード"
refreshing: "リロード中"
pullDownToRefresh: "引っ張ってリロード"
disableStreamingTimeline: "タイムラインのリアルタイム更新を無効にする"
useGroupedNotifications: "通知をグルーピング"
signupPendingError: "メールアドレスの確認中に問題が発生しました。リンクの有効期限が切れている可能性があります。"
cwNotationRequired: "「内容を隠す」がオンの場合は注釈の記述が必要です。"

View File

@ -109,17 +109,19 @@ let tlNotesCount = 0;
const POLLING_INTERVAL = 1000 * 10;
useInterval(async () => {
const notes = await misskeyApi(paginationQuery.endpoint, {
...paginationQuery.params,
limit: 10,
sinceId: Array.from(paginator.items.value.keys()).at(-1),
if (!store.s.realtimeMode) {
useInterval(async () => {
const notes = await misskeyApi(paginationQuery.endpoint, {
...paginationQuery.params,
limit: 10,
sinceId: Array.from(paginator.items.value.keys()).at(-1),
});
console.log(notes);
}, POLLING_INTERVAL, {
immediate: false,
afterMounted: true,
});
console.log(notes);
}, POLLING_INTERVAL, {
immediate: false,
afterMounted: true,
});
}
function prepend(note) {
tlNotesCount++;
@ -280,7 +282,7 @@ function updatePaginationQuery() {
}
function refreshEndpointAndChannel() {
if (!prefer.s.disableStreamingTimeline && store.s.realtimeMode) {
if (store.s.realtimeMode) {
disconnectChannel();
connectChannel();
}

View File

@ -148,14 +148,6 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkPreferenceContainer>
</SearchMarker>
<SearchMarker :keywords="['disable', 'streaming', 'timeline']">
<MkPreferenceContainer k="disableStreamingTimeline">
<MkSwitch v-model="disableStreamingTimeline">
<template #label><SearchLabel>{{ i18n.ts.disableStreamingTimeline }}</SearchLabel></template>
</MkSwitch>
</MkPreferenceContainer>
</SearchMarker>
<SearchMarker :keywords="['pinned', 'list']">
<MkFolder>
<template #label><SearchLabel>{{ i18n.ts.pinnedList }}</SearchLabel></template>
@ -759,7 +751,6 @@ const showFixedPostFormInChannel = prefer.model('showFixedPostFormInChannel');
const numberOfPageCache = prefer.model('numberOfPageCache');
const enableInfiniteScroll = prefer.model('enableInfiniteScroll');
const useReactionPickerForContextMenu = prefer.model('useReactionPickerForContextMenu');
const disableStreamingTimeline = prefer.model('disableStreamingTimeline');
const useGroupedNotifications = prefer.model('useGroupedNotifications');
const alwaysConfirmFollow = prefer.model('alwaysConfirmFollow');
const confirmWhenRevealingSensitiveMedia = prefer.model('confirmWhenRevealingSensitiveMedia');
@ -827,7 +818,6 @@ watch([
enableInfiniteScroll,
showNoteActionsOnlyHover,
overridedDeviceKind,
disableStreamingTimeline,
alwaysConfirmFollow,
confirmWhenRevealingSensitiveMedia,
showGapBetweenNotesInTimeline,

View File

@ -115,7 +115,6 @@ export function migrateOldSettings() {
prefer.commit('notificationStackAxis', store.s.notificationStackAxis);
prefer.commit('enableCondensedLine', store.s.enableCondensedLine);
prefer.commit('keepScreenOn', store.s.keepScreenOn);
prefer.commit('disableStreamingTimeline', store.s.disableStreamingTimeline);
prefer.commit('useGroupedNotifications', store.s.useGroupedNotifications);
prefer.commit('dataSaver', store.s.dataSaver);
prefer.commit('enableSeasonalScreenEffect', store.s.enableSeasonalScreenEffect);

View File

@ -277,9 +277,6 @@ export const PREF_DEF = {
keepScreenOn: {
default: false,
},
disableStreamingTimeline: {
default: false,
},
useGroupedNotifications: {
default: true,
},

View File

@ -382,10 +382,6 @@ export const store = markRaw(new Pizzax('base', {
where: 'device',
default: false,
},
disableStreamingTimeline: {
where: 'device',
default: false,
},
useGroupedNotifications: {
where: 'device',
default: true,