[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',
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue