create AtRoomPill when autocomplete returns @room

pull/21833/head
Bruno Windels 2019-06-14 18:25:43 +02:00
parent 65d56d1490
commit 78971f168f
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ export default class AutocompleteWrapperModel {
const firstChr = completionId && completionId[0];
switch (firstChr) {
case "@": {
return this._partCreator.userPill(text, completionId);
if (completionId === "@room") {
return this._partCreator.atRoomPill(completionId);
} else {
return this._partCreator.userPill(text, completionId);
}
}
case "#":
return this._partCreator.roomPill(completionId);