1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Fix force completion and hide rooms with no alias

This commit is contained in:
Aviral Dasgupta
2016-09-13 18:02:33 +05:30
parent 9a991a4dfd
commit 79e5e6f6fe
3 changed files with 10 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ export default class RoomProvider extends AutocompleteProvider {
),
range,
};
}).slice(0, 4);
}).filter(completion => !!completion.completion && completion.completion.length > 0).slice(0, 4);
}
return completions;
}