Skip to content

Commit

Permalink
chore: disable chatwoot user identification on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
duchunter committed Mar 29, 2024
1 parent 69fbf9a commit 347660d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/renderer/plugins/mixins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ Vue.mixin({
await this.$cookies.remove('cs_locker_token')
this.$store.commit('CLEAR_ALL_DATA')
this.$router.push(this.localeRoute({ name: 'index' }))
window.$chatwoot?.reset()
// TODO
// window.$chatwoot?.reset()
},

async lock () {
Expand Down
12 changes: 7 additions & 5 deletions src/renderer/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ export const actions = {
console.log('Ignore Chatwoot')
return
}
return this.$axios
.$get('cystack_platform/pm/users/me/chatwoot')
.then(res => {
commit('UPDATE_USER_CHATWOOT', res)
}).catch(() => {})
return {}
// TODO
// return this.$axios
// .$get('cystack_platform/pm/users/me/chatwoot')
// .then(res => {
// commit('UPDATE_USER_CHATWOOT', res)
// }).catch(() => {})
},
LoadNotification ({ commit }) {
// const user = context.state.user
Expand Down

0 comments on commit 347660d

Please sign in to comment.