[FIX] Delete message on thread (#1214)
This commit is contained in:
parent
6889241b45
commit
ca351db73e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue