mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Searching: Move a comment to the correct place.
This commit is contained in:
parent
3b06c684d2
commit
b4a6123295
1 changed files with 2 additions and 1 deletions
|
@ -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],
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue