diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 6a91f116e..d3c18517f 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -899,13 +899,15 @@ class RoomView extends React.Component { }; onDiscussionPress = debounce( - (item: TAnyMessageModel) => { + async (item: TAnyMessageModel) => { const { navigation } = this.props; + if (!item.drid) return; + const sub = await getRoomInfo(item.drid); navigation.push('RoomView', { rid: item.drid as string, - prid: item.rid, + prid: item?.subscription?.id, name: item.msg, - t: 'p' as SubscriptionType + t: (sub?.t as SubscriptionType) || (this.t as SubscriptionType) }); }, 1000,