mirror of https://github.com/vector-im/riot-web
create AtRoomPill when autocomplete returns @room
parent
65d56d1490
commit
78971f168f
|
@ -95,8 +95,12 @@ export default class AutocompleteWrapperModel {
|
|||
const firstChr = completionId && completionId[0];
|
||||
switch (firstChr) {
|
||||
case "@": {
|
||||
if (completionId === "@room") {
|
||||
return this._partCreator.atRoomPill(completionId);
|
||||
} else {
|
||||
return this._partCreator.userPill(text, completionId);
|
||||
}
|
||||
}
|
||||
case "#":
|
||||
return this._partCreator.roomPill(completionId);
|
||||
// also used for emoji completion
|
||||
|
|
Loading…
Reference in New Issue