fix: Hide deleted messages on widget side (#2614)
This commit is contained in:
parent
cf785123a5
commit
b56512eb56
13 changed files with 222 additions and 54 deletions
|
@ -37,6 +37,7 @@ import UserMessageBubble from 'widget/components/UserMessageBubble';
|
|||
import ImageBubble from 'widget/components/ImageBubble';
|
||||
import FileBubble from 'widget/components/FileBubble';
|
||||
import timeMixin from 'dashboard/mixins/time';
|
||||
import messageMixin from '../mixins/messageMixin';
|
||||
import { mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
|
@ -46,7 +47,7 @@ export default {
|
|||
ImageBubble,
|
||||
FileBubble,
|
||||
},
|
||||
mixins: [timeMixin],
|
||||
mixins: [timeMixin, messageMixin],
|
||||
props: {
|
||||
message: {
|
||||
type: Object,
|
||||
|
@ -62,11 +63,6 @@ export default {
|
|||
const { status = '' } = this.message;
|
||||
return status === 'in_progress';
|
||||
},
|
||||
hasAttachments() {
|
||||
return !!(
|
||||
this.message.attachments && this.message.attachments.length > 0
|
||||
);
|
||||
},
|
||||
showTextBubble() {
|
||||
const { message } = this;
|
||||
return !!message.content;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue