mirror of https://github.com/vector-im/riot-web
add suffixes from provider to room and @room completions
this prevents the @room not working when not typing an extra spacepull/21833/head
parent
228905bec2
commit
40f7fa8f94
|
@ -102,9 +102,9 @@ export default class AutocompleteWrapperModel {
|
||||||
const text = completion.completion;
|
const text = completion.completion;
|
||||||
switch (completion.type) {
|
switch (completion.type) {
|
||||||
case "room":
|
case "room":
|
||||||
return [this._partCreator.roomPill(completionId)];
|
return [this._partCreator.roomPill(completionId), this._partCreator.plain(completion.suffix)];
|
||||||
case "at-room":
|
case "at-room":
|
||||||
return [this._partCreator.atRoomPill(completionId)];
|
return [this._partCreator.atRoomPill(completionId), this._partCreator.plain(completion.suffix)];
|
||||||
case "user":
|
case "user":
|
||||||
// not using suffix here, because we also need to calculate
|
// not using suffix here, because we also need to calculate
|
||||||
// the suffix when clicking a display name to insert a mention,
|
// the suffix when clicking a display name to insert a mention,
|
||||||
|
|
Loading…
Reference in New Issue