add chatwoot auto_create and profile photo

This commit is contained in:
Gabriel Pastori
2023-12-11 18:32:46 -03:00
parent 35850135d7
commit 3dea085b60
6 changed files with 41 additions and 11 deletions

View File

@@ -123,6 +123,13 @@ export const useAppStore = defineStore('app', {
this.instancesList[index].instance.status = status
},
setPhoto(instanceName, photo) {
const index = this.instancesList.findIndex(
(instance) => instance.instance.instanceName === instanceName
)
if (index !== -1) this.instancesList[index].instance.profilePictureUrl = photo
},
addInstanceKey({ instance, key }) {
this.instancesKeys[instance] = key
},