[FIX] Delete message on thread (#1214)

This commit is contained in:
Djorkaeff Alexandre 2019-09-26 14:12:27 -03:00 committed by Diego Mello
parent 6889241b45
commit ca351db73e
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ class MessageActions extends React.Component {
style: 'destructive', style: 'destructive',
onPress: async() => { onPress: async() => {
try { try {
await RocketChat.deleteMessage(message.id, message.rid); await RocketChat.deleteMessage(message.id, message.subscription.id);
} catch (e) { } catch (e) {
log(e); log(e);
} }

View File

@ -10,7 +10,7 @@ import { THREAD } from './constants';
const Thread = React.memo(({ const Thread = React.memo(({
msg, tcount, tlm, customThreadTimeFormat, isThreadRoom msg, tcount, tlm, customThreadTimeFormat, isThreadRoom
}) => { }) => {
if (!tlm || isThreadRoom) { if (!tlm || isThreadRoom || tcount === 0) {
return null; return null;
} }