Commit ca351db7 authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by Diego Mello
Browse files

[FIX] Delete message on thread (#1214)

parent 6889241b
......@@ -237,7 +237,7 @@ class MessageActions extends React.Component {
style: 'destructive',
onPress: async() => {
try {
await RocketChat.deleteMessage(message.id, message.rid);
await RocketChat.deleteMessage(message.id, message.subscription.id);
} catch (e) {
log(e);
}
......
......@@ -10,7 +10,7 @@ import { THREAD } from './constants';
const Thread = React.memo(({
msg, tcount, tlm, customThreadTimeFormat, isThreadRoom
}) => {
if (!tlm || isThreadRoom) {
if (!tlm || isThreadRoom || tcount === 0) {
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment