Searching: Move a comment to the correct place.

This commit is contained in:
Damir Jelić 2019-11-18 10:48:18 +01:00
parent 3b06c684d2
commit b4a6123295

View file

@ -20,8 +20,9 @@ import MatrixClientPeg from "./MatrixClientPeg";
function serverSideSearch(term, roomId = undefined) {
let filter;
if (roomId !== undefined) {
// XXX: it's unintuitive that the filter for searching doesn't have
// the same shape as the v2 filter API :(
filter = {
// XXX: it's unintuitive that the filter for searching doesn't have the same shape as the v2 filter API :(
rooms: [roomId],
};
}