mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	Merge branch 'hotfix/1.2.2' into develop
This commit is contained in:
		| @@ -108,10 +108,9 @@ export default { | ||||
|       return channel; | ||||
|     }, | ||||
|     conversationType() { | ||||
|       const { | ||||
|         additional_attributes: additionalAttributes = {}, | ||||
|       } = this.currentChat; | ||||
|       return additionalAttributes.type || ''; | ||||
|       const { additional_attributes: additionalAttributes } = this.currentChat; | ||||
|       const type = additionalAttributes ? additionalAttributes.type : ''; | ||||
|       return type || ''; | ||||
|     }, | ||||
|     maxLength() { | ||||
|       if (this.channelType === 'Channel::FacebookPage') { | ||||
|   | ||||
							
								
								
									
										10
									
								
								db/seeds.rb
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								db/seeds.rb
									
									
									
									
									
								
							| @@ -17,5 +17,13 @@ InboxMember.create!(user: user, inbox: inbox) | ||||
|  | ||||
| contact = Contact.create!(name: 'jane', email: 'jane@example.com', phone_number: '0000', account: account) | ||||
| contact_inbox = ContactInbox.create!(inbox: inbox, contact: contact, source_id: user.id) | ||||
| conversation = Conversation.create!(account: account, inbox: inbox, status: :open, assignee: user, contact: contact, contact_inbox: contact_inbox) | ||||
| conversation = Conversation.create!( | ||||
|   account: account, | ||||
|   inbox: inbox, | ||||
|   status: :open, | ||||
|   assignee: user, | ||||
|   contact: contact, | ||||
|   contact_inbox: contact_inbox, | ||||
|   additional_attributes: {} | ||||
| ) | ||||
| Message.create!(content: 'Hello', account: account, inbox: inbox, conversation: conversation, message_type: :incoming) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pranav Raj Sreepuram
					Pranav Raj Sreepuram