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