From 61fcc4885426b49ccfad71d4dade38d08b85dad2 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 28 Jun 2025 19:12:13 +0300 Subject: [PATCH] only fetch pleroma:chat_mention type if chats are supported --- .../notifications_fetcher/notifications_fetcher.service.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js index 9af973226..04c0d637c 100644 --- a/src/services/notifications_fetcher/notifications_fetcher.service.js +++ b/src/services/notifications_fetcher/notifications_fetcher.service.js @@ -14,7 +14,6 @@ const mastoApiNotificationTypes = [ 'move', 'poll', 'pleroma:emoji_reaction', - 'pleroma:chat_mention', 'pleroma:report' ] @@ -29,6 +28,10 @@ const fetchAndUpdate = ({ store, credentials, older = false, since }) => { const timelineData = rootState.notifications const hideMutedPosts = getters.mergedConfig.hideMutedPosts + if (store.rootState.instance.pleromaChatMessagesAvailable) { + mastoApiNotificationTypes.push('pleroma:chat_mention') + } + args.includeTypes = mastoApiNotificationTypes args.withMuted = !hideMutedPosts