Delete envelopes from vuex state
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Родитель
32d1f3618f
Коммит
5282dcfe4c
|
@ -231,6 +231,8 @@ export default {
|
|||
const thread = env.thread.filter(threadId => threadId !== id)
|
||||
Vue.set(state.envelopes[key], 'thread', thread)
|
||||
}
|
||||
|
||||
Vue.delete(state.envelopes, id)
|
||||
},
|
||||
addMessage(state, { message }) {
|
||||
Vue.set(state.messages, message.databaseId, message)
|
||||
|
|
|
@ -871,11 +871,6 @@ describe('Vuex store mutations', () => {
|
|||
},
|
||||
},
|
||||
envelopes: {
|
||||
12345: {
|
||||
mailboxId: 27,
|
||||
id: 123,
|
||||
uid: 12345,
|
||||
},
|
||||
12346: {
|
||||
mailboxId: 27,
|
||||
id: 123,
|
||||
|
|
Загрузка…
Ссылка в новой задаче