Compare commits

...

3 commits

Author SHA1 Message Date
Henry Jameson
603d850014 Merge branch 'setttingssync' into shigusegubu-themes3 2026-04-22 18:11:02 +03:00
Henry Jameson
7b3bf9d290 fix notifications not showing up 2026-04-22 18:10:53 +03:00
Henry Jameson
5929ea0369 cleanup consolelog 2026-04-22 18:02:37 +03:00
2 changed files with 5 additions and 4 deletions

View file

@ -65,22 +65,24 @@ const sortById = (a, b) => {
}
}
const isMutedNotification = (notification) => {
const isMutedNotification = (muteFilters, notification) => {
if (!notification.status) return false
if (notification.status.muted) return true
return muteFilterHits(notification.status).length > 0
return muteFilterHits(muteFilters, notification.status).length > 0
}
export const maybeShowNotification = (
store,
notificationVisibility,
muteFilters,
notification,
) => {
console.log('NOTIF', store, notificationVisibility, muteFilters, notification)
const rootState = store.rootState || store.state
if (notification.seen) return
if (!visibleTypes(notificationVisibility).includes(notification.type)) return
if (notification.type === 'mention' && isMutedNotification(notification))
if (notification.type === 'mention' && isMutedNotification(muteFilters, notification))
return
const notificationObject = prepareNotificationObject(

View file

@ -91,7 +91,6 @@ export const useInterfaceStore = defineStore('interface', {
},
setPageTitle(option = '') {
try {
console.log('TITLE', option, useInstanceStore().instanceIdentity.name)
document.title = `${option} ${useInstanceStore().instanceIdentity.name}`
} catch (error) {
console.error(`${error}`)