only fetch pleroma:chat_mention type if chats are supported
This commit is contained in:
parent
0a8d7ea659
commit
61fcc48854
1 changed files with 4 additions and 1 deletions
|
|
@ -14,7 +14,6 @@ const mastoApiNotificationTypes = [
|
||||||
'move',
|
'move',
|
||||||
'poll',
|
'poll',
|
||||||
'pleroma:emoji_reaction',
|
'pleroma:emoji_reaction',
|
||||||
'pleroma:chat_mention',
|
|
||||||
'pleroma:report'
|
'pleroma:report'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -29,6 +28,10 @@ const fetchAndUpdate = ({ store, credentials, older = false, since }) => {
|
||||||
const timelineData = rootState.notifications
|
const timelineData = rootState.notifications
|
||||||
const hideMutedPosts = getters.mergedConfig.hideMutedPosts
|
const hideMutedPosts = getters.mergedConfig.hideMutedPosts
|
||||||
|
|
||||||
|
if (store.rootState.instance.pleromaChatMessagesAvailable) {
|
||||||
|
mastoApiNotificationTypes.push('pleroma:chat_mention')
|
||||||
|
}
|
||||||
|
|
||||||
args.includeTypes = mastoApiNotificationTypes
|
args.includeTypes = mastoApiNotificationTypes
|
||||||
args.withMuted = !hideMutedPosts
|
args.withMuted = !hideMutedPosts
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue