create AtRoomPill when autocomplete returns @room
This commit is contained in:
@@ -95,7 +95,11 @@ export default class AutocompleteWrapperModel {
|
|||||||
const firstChr = completionId && completionId[0];
|
const firstChr = completionId && completionId[0];
|
||||||
switch (firstChr) {
|
switch (firstChr) {
|
||||||
case "@": {
|
case "@": {
|
||||||
return this._partCreator.userPill(text, completionId);
|
if (completionId === "@room") {
|
||||||
|
return this._partCreator.atRoomPill(completionId);
|
||||||
|
} else {
|
||||||
|
return this._partCreator.userPill(text, completionId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case "#":
|
case "#":
|
||||||
return this._partCreator.roomPill(completionId);
|
return this._partCreator.roomPill(completionId);
|
||||||
|
|||||||
Reference in New Issue
Block a user