Searching: Move a comment to the correct place.
parent
3b06c684d2
commit
b4a6123295
|
|
@ -20,8 +20,9 @@ import MatrixClientPeg from "./MatrixClientPeg";
|
||||||
function serverSideSearch(term, roomId = undefined) {
|
function serverSideSearch(term, roomId = undefined) {
|
||||||
let filter;
|
let filter;
|
||||||
if (roomId !== undefined) {
|
if (roomId !== undefined) {
|
||||||
|
// XXX: it's unintuitive that the filter for searching doesn't have
|
||||||
|
// the same shape as the v2 filter API :(
|
||||||
filter = {
|
filter = {
|
||||||
// XXX: it's unintuitive that the filter for searching doesn't have the same shape as the v2 filter API :(
|
|
||||||
rooms: [roomId],
|
rooms: [roomId],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue