diff --git a/app/containers/message/index.js b/app/containers/message/index.js index a0273962f..941ec7591 100644 --- a/app/containers/message/index.js +++ b/app/containers/message/index.js @@ -48,14 +48,12 @@ export default class Message extends React.Component { } onLongPress() { - console.warn(this.props.item) - // TESTE TYPE RM const { item } = this.props; this.props.actionsShow(JSON.parse(JSON.stringify(item))); } isDeleted() { - return !this.props.item.msg; + return this.props.item.t === 'rm'; } attachments() { diff --git a/app/lib/realm.js b/app/lib/realm.js index bc36b6940..10340ce0d 100644 --- a/app/lib/realm.js +++ b/app/lib/realm.js @@ -128,6 +128,7 @@ const messagesSchema = { _id: 'string', _server: 'servers', msg: { type: 'string', optional: true }, + t: { type: 'string', optional: true }, rid: 'string', ts: 'date', u: 'users',