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() {
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() {

View File

@ -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',