fix: navigate to other rooms tapping at message (#5488)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
parent
e5746451ba
commit
b0d0257976
|
@ -43,7 +43,7 @@ const RoomInfoView = (): React.ReactElement => {
|
|||
} = useRoute<TRoomInfoViewRouteProp>();
|
||||
const { addListener, setOptions, navigate, goBack } = useNavigation<TRoomInfoViewNavigationProp>();
|
||||
|
||||
const [room, setRoom] = useState(roomParam);
|
||||
const [room, setRoom] = useState(roomParam || ({ rid, t } as ISubscription));
|
||||
const [roomFromRid, setRoomFromRid] = useState<ISubscription | undefined>();
|
||||
const [roomUser, setRoomUser] = useState(member || {});
|
||||
const [showEdit, setShowEdit] = useState(false);
|
||||
|
@ -225,7 +225,7 @@ const RoomInfoView = (): React.ReactElement => {
|
|||
const params = {
|
||||
rid: r?.rid,
|
||||
name: getRoomTitle(r),
|
||||
t: r?.t,
|
||||
t: roomType,
|
||||
roomUserId: getUidDirectMessage(r)
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue