You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Fix autocompletion of Community IDs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -186,7 +186,7 @@ abstract class PlainBasePart extends BasePart {
|
||||
}
|
||||
// when not pasting or dropping text, reject characters that should start a pill candidate
|
||||
if (inputType !== "insertFromPaste" && inputType !== "insertFromDrop") {
|
||||
return chr !== "@" && chr !== "#" && chr !== ":";
|
||||
return chr !== "@" && chr !== "#" && chr !== ":" && chr !== "+";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -463,6 +463,7 @@ export class PartCreator {
|
||||
case "#":
|
||||
case "@":
|
||||
case ":":
|
||||
case "+":
|
||||
return this.pillCandidate("");
|
||||
case "\n":
|
||||
return new NewlinePart();
|
||||
|
||||
Reference in New Issue
Block a user