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);
}