Обновить каналы и перенести черновики

This commit is contained in:
AidarKC
2026-09-09 15:17:31 +03:00
parent f827c3e493
commit 9f77c54955
8 changed files with 168 additions and 85 deletions
+12 -6
View File
@@ -1067,12 +1067,18 @@ async function loadFeedAndRender({ screen, listState, contentEl, navigate }) {
try {
const feed = await authService.listSubscriptionsFeed(state.session.login, 200);
let diaryPayload = null;
try {
diaryPayload = await authService.getPersonalDiary(state.session.login, 200, 'asc');
} catch {
diaryPayload = null;
}
// FEATURE DISABLED: personal Diary is intentionally hidden from the Channels UI.
// The server/API implementation is preserved so the feature can be restored later.
// See: docs/закомментировано/Личный_дневник.md
// let diaryPayload = null;
// try {
// diaryPayload = await authService.getPersonalDiary(state.session.login, 200, 'asc');
// } catch {
// diaryPayload = null;
// }
const diaryPayload = null;
const groups = mapApiFeed(feed, listState.notificationsState, diaryPayload);
listState.channels = toListModel(groups);