Update MSC3827 implementation to not change the default behaviour (#8936)

This commit is contained in:
Šimon Brandner
2022-06-29 16:37:23 +00:00
committed by GitHub
parent 3c14d93237
commit 68c94c6400
2 changed files with 4 additions and 5 deletions
+3 -1
View File
@@ -91,7 +91,9 @@ export const usePublicRoomDirectory = () => {
if (query || roomTypes) {
opts.filter = {
"generic_search_term": query,
"org.matrix.msc3827.room_types": roomTypes ? Array.from<RoomType | null>(roomTypes) : null,
"org.matrix.msc3827.room_types": await MatrixClientPeg.get().doesServerSupportUnstableFeature(
"org.matrix.msc3827",
) ? Array.from<RoomType | null>(roomTypes) : null,
};
}