1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Split MessageEditor in edit-specifics & reusable part for main composer

This commit is contained in:
Bruno Windels
2019-08-05 15:27:40 +02:00
parent e8fcfbe2bf
commit 299cf8542c
6 changed files with 273 additions and 163 deletions

View File

@ -65,5 +65,5 @@ export function createPartCreator(completions = []) {
const autoCompleteCreator = (partCreator) => {
return (updateCallback) => new MockAutoComplete(updateCallback, partCreator, completions);
};
return new PartCreator(autoCompleteCreator, new MockRoom(), new MockClient());
return new PartCreator(new MockRoom(), new MockClient(), autoCompleteCreator);
}