Commit 26731dcb authored by absturztaube's avatar absturztaube

removed double mapping

parent d8d6af54
Pipeline #27489 passed with stages
in 8 minutes and 55 seconds
......@@ -594,22 +594,6 @@ export const mutations = {
const statuses = {
state: defaultState(),
getters: {
unreadChatCount: state => currentChat => {
let res = 0
state.notifications.data.forEach(n => {
let isMsg = !n.seen && n.chatMessage
if (!isMsg) { return }
if (currentChat) {
if (currentChat.id !== n.chatMessage.chat_id) { res++ }
} else {
res++
}
})
return res
}
},
actions: {
addNewStatuses ({ rootState, commit }, { statuses, showImmediately = false, timeline = false, noIdUpdate = false, userId }) {
commit('addNewStatuses', { statuses, showImmediately, timeline, noIdUpdate, user: rootState.users.currentUser, userId })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment