only fetch pleroma:chat_mention type if chats are supported

This commit is contained in:
Henry Jameson 2025-06-28 19:12:13 +03:00
commit 61fcc48854

View file

@ -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