mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
create AtRoomPill when autocomplete returns @room
This commit is contained in:
parent
65d56d1490
commit
78971f168f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user