mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	fix: Agent avatar instead of bot avatar in pending message (#6777)
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
		| @@ -336,6 +336,12 @@ export default { | |||||||
|         this.message.length > this.maxLength |         this.message.length > this.maxLength | ||||||
|       ); |       ); | ||||||
|     }, |     }, | ||||||
|  |     sender() { | ||||||
|  |       return { | ||||||
|  |         name: this.currentUser.name, | ||||||
|  |         thumbnail: this.currentUser.avatar_url, | ||||||
|  |       }; | ||||||
|  |     }, | ||||||
|     conversationType() { |     conversationType() { | ||||||
|       const { additional_attributes: additionalAttributes } = this.currentChat; |       const { additional_attributes: additionalAttributes } = this.currentChat; | ||||||
|       const type = additionalAttributes ? additionalAttributes.type : ''; |       const type = additionalAttributes ? additionalAttributes.type : ''; | ||||||
| @@ -996,6 +1002,7 @@ export default { | |||||||
|             files: [attachedFile], |             files: [attachedFile], | ||||||
|             private: false, |             private: false, | ||||||
|             message: caption, |             message: caption, | ||||||
|  |             sender: this.sender, | ||||||
|           }; |           }; | ||||||
|           multipleMessagePayload.push(attachmentPayload); |           multipleMessagePayload.push(attachmentPayload); | ||||||
|           caption = ''; |           caption = ''; | ||||||
| @@ -1005,6 +1012,7 @@ export default { | |||||||
|           conversationId: this.currentChat.id, |           conversationId: this.currentChat.id, | ||||||
|           message, |           message, | ||||||
|           private: false, |           private: false, | ||||||
|  |           sender: this.sender, | ||||||
|         }; |         }; | ||||||
|         multipleMessagePayload.push(messagePayload); |         multipleMessagePayload.push(messagePayload); | ||||||
|       } |       } | ||||||
| @@ -1016,6 +1024,7 @@ export default { | |||||||
|         conversationId: this.currentChat.id, |         conversationId: this.currentChat.id, | ||||||
|         message, |         message, | ||||||
|         private: this.isPrivate, |         private: this.isPrivate, | ||||||
|  |         sender: this.sender, | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
|       if (this.inReplyTo) { |       if (this.inReplyTo) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Muhsin Keloth
					Muhsin Keloth