fix: Hide deleted messages on widget side (#2614)

This commit is contained in:
Muhsin Keloth 2021-07-15 14:27:37 +05:30 committed by GitHub
parent cf785123a5
commit b56512eb56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 222 additions and 54 deletions

View file

@ -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;