Message removed fixed
This commit is contained in:
parent
907730b3dc
commit
e21fac2c70
|
@ -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() {
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue