Skip to content

Commit 4c35ec8

Browse files
committed
reset state on logout
1 parent 86a9048 commit 4c35ec8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

web/components/MessageThread.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</p>
3333
</div>
3434
<v-btn
35-
v-if="$store.getters.getOwner"
35+
v-if="$store.getters.getOwner && $store.getters.getPhones.length !== 0"
3636
class="primary"
3737
:to="{ name: 'messages' }"
3838
>

web/store/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ export const mutations = {
227227
},
228228

229229
resetState(state: State) {
230+
state.threads = []
231+
state.threadMessages = []
230232
state.archivedThreads = false
231233
state.owner = null
232234
},

0 commit comments

Comments
 (0)