Move announcements module to store

This commit is contained in:
Sean King 2023-04-06 16:32:21 -06:00
commit f9254e5fb7
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
13 changed files with 160 additions and 153 deletions

View file

@ -19,6 +19,7 @@ import FaviconService from '../services/favicon_service/favicon_service.js'
import { useI18nStore } from '../stores/i18n'
import { useInterfaceStore } from '../stores/interface'
import { useAnnouncementsStore } from '../stores/announcements'
let staticInitialResults = null
@ -389,7 +390,7 @@ const afterStoreSetup = async ({ pinia, store, storageError, i18n }) => {
// Start fetching things that don't need to block the UI
store.dispatch('fetchMutes')
store.dispatch('startFetchingAnnouncements')
useAnnouncementsStore().startFetchingAnnouncements()
getTOS({ store })
getStickers({ store })