mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 23:11:12 +02:00
add suffixes from provider to room and @room completions
this prevents the @room not working when not typing an extra space
This commit is contained in:
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…
x
Reference in New Issue
Block a user