Message removed fixed

This commit is contained in:
Diego Mello 2017-11-27 11:13:05 -02:00
parent 907730b3dc
commit e21fac2c70
2 changed files with 2 additions and 3 deletions

View File

@ -48,14 +48,12 @@ export default class Message extends React.Component {
} }
onLongPress() { onLongPress() {
console.warn(this.props.item)
// TESTE TYPE RM
const { item } = this.props; const { item } = this.props;
this.props.actionsShow(JSON.parse(JSON.stringify(item))); this.props.actionsShow(JSON.parse(JSON.stringify(item)));
} }
isDeleted() { isDeleted() {
return !this.props.item.msg; return this.props.item.t === 'rm';
} }
attachments() { attachments() {

View File

@ -128,6 +128,7 @@ const messagesSchema = {
_id: 'string', _id: 'string',
_server: 'servers', _server: 'servers',
msg: { type: 'string', optional: true }, msg: { type: 'string', optional: true },
t: { type: 'string', optional: true },
rid: 'string', rid: 'string',
ts: 'date', ts: 'date',
u: 'users', u: 'users',