From 40f7fa8f9433ea25a1b7a1ffe701a320f2f0069b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 23 Sep 2019 14:40:41 +0200 Subject: [PATCH] add suffixes from provider to room and @room completions this prevents the @room not working when not typing an extra space --- src/editor/autocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/autocomplete.js b/src/editor/autocomplete.js index 3ee69dc477..1ead3aef07 100644 --- a/src/editor/autocomplete.js +++ b/src/editor/autocomplete.js @@ -102,9 +102,9 @@ export default class AutocompleteWrapperModel { const text = completion.completion; switch (completion.type) { case "room": - return [this._partCreator.roomPill(completionId)]; + return [this._partCreator.roomPill(completionId), this._partCreator.plain(completion.suffix)]; case "at-room": - return [this._partCreator.atRoomPill(completionId)]; + return [this._partCreator.atRoomPill(completionId), this._partCreator.plain(completion.suffix)]; case "user": // not using suffix here, because we also need to calculate // the suffix when clicking a display name to insert a mention,