Merge branch 'hotfix/1.2.2' into develop
This commit is contained in:
commit
2a6670f0da
2 changed files with 12 additions and 5 deletions
|
@ -108,10 +108,9 @@ export default {
|
||||||
return channel;
|
return channel;
|
||||||
},
|
},
|
||||||
conversationType() {
|
conversationType() {
|
||||||
const {
|
const { additional_attributes: additionalAttributes } = this.currentChat;
|
||||||
additional_attributes: additionalAttributes = {},
|
const type = additionalAttributes ? additionalAttributes.type : '';
|
||||||
} = this.currentChat;
|
return type || '';
|
||||||
return additionalAttributes.type || '';
|
|
||||||
},
|
},
|
||||||
maxLength() {
|
maxLength() {
|
||||||
if (this.channelType === 'Channel::FacebookPage') {
|
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 = 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)
|
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)
|
Message.create!(content: 'Hello', account: account, inbox: inbox, conversation: conversation, message_type: :incoming)
|
||||||
|
|
Loading…
Reference in a new issue