Compare commits
No commits in common. "603d85001428df0a5b37fd379fbc39ad8223668e" and "b5206d1b3b6c5a34679c2b43b73cf6bc11e9361d" have entirely different histories.
603d850014
...
b5206d1b3b
2 changed files with 4 additions and 5 deletions
|
|
@ -65,24 +65,22 @@ const sortById = (a, b) => {
|
|||
}
|
||||
}
|
||||
|
||||
const isMutedNotification = (muteFilters, notification) => {
|
||||
const isMutedNotification = (notification) => {
|
||||
if (!notification.status) return false
|
||||
if (notification.status.muted) return true
|
||||
return muteFilterHits(muteFilters, notification.status).length > 0
|
||||
return muteFilterHits(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(muteFilters, notification))
|
||||
if (notification.type === 'mention' && isMutedNotification(notification))
|
||||
return
|
||||
|
||||
const notificationObject = prepareNotificationObject(
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ 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}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue