mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	Bug: Fix account_id in URLs (#894)
* Bug: Fix account_id in URLs * Fix accountMixin specs
This commit is contained in:
		| @@ -75,6 +75,7 @@ export default { | ||||
|       inboxesList: 'inboxes/getInboxes', | ||||
|       activeInbox: 'getSelectedInbox', | ||||
|       currentUser: 'getCurrentUser', | ||||
|       accountId: 'getCurrentAccountId', | ||||
|     }), | ||||
|  | ||||
|     isActiveChat() { | ||||
| @@ -97,11 +98,7 @@ export default { | ||||
|   methods: { | ||||
|     cardClick(chat) { | ||||
|       const { activeInbox } = this; | ||||
|       const path = conversationUrl( | ||||
|         this.currentUser.account_id, | ||||
|         activeInbox, | ||||
|         chat.id | ||||
|       ); | ||||
|       const path = conversationUrl(this.accountId, activeInbox, chat.id); | ||||
|       router.push({ path: frontendURL(path) }); | ||||
|     }, | ||||
|     extractMessageText(chatItem) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pranav Raj S
					Pranav Raj S