fix: navigate to other rooms tapping at message (#5488)

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
Reinaldo Neto 2024-01-22 14:52:44 -03:00 committed by GitHub
parent e5746451ba
commit b0d0257976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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)
};