[Feature] Email collect message hooks (#331)
- Add email collect hook on creating conversation - Merge contact if it already exist
This commit is contained in:
parent
59d4eaeca7
commit
722f540b03
68 changed files with 1111 additions and 544 deletions
|
@ -74,13 +74,13 @@ export default {
|
|||
return this.formatMessage(this.data.content);
|
||||
},
|
||||
alignBubble() {
|
||||
return this.data.message_type === 1 ? 'right' : 'left';
|
||||
return !this.data.message_type ? 'left' : 'right';
|
||||
},
|
||||
readableTime() {
|
||||
return this.messageStamp(this.data.created_at);
|
||||
},
|
||||
isBubble() {
|
||||
return this.data.message_type === 1 || this.data.message_type === 0;
|
||||
return [0, 1, 3].includes(this.data.message_type);
|
||||
},
|
||||
isPrivate() {
|
||||
return this.data.private;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue