Skip to content

Commit 3372fb6

Browse files
committed
Fix public room showing leaved room as joined
1 parent bc85626 commit 3372fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/organisms/public-rooms/PublicRooms.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function PublicRooms({ isOpen, searchTerm, onRequestClose }) {
195195
return rooms.map((room) => {
196196
const alias = typeof room.canonical_alias === 'string' ? room.canonical_alias : room.room_id;
197197
const name = typeof room.name === 'string' ? room.name : alias;
198-
const isJoined = initMatrix.matrixClient.getRoom(room.room_id) !== null;
198+
const isJoined = initMatrix.matrixClient.getRoom(room.room_id)?.getMyMembership() === 'join';
199199
return (
200200
<RoomTile
201201
key={room.room_id}

0 commit comments

Comments
 (0)