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 NPEs when deleting mentions
This commit is contained in:
@@ -1038,7 +1038,6 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
data: { completion, completionId, url: href },
|
data: { completion, completionId, url: href },
|
||||||
// we can't put text in here otherwise the editor tries to select it
|
// we can't put text in here otherwise the editor tries to select it
|
||||||
isVoid: true,
|
isVoid: true,
|
||||||
nodes: [],
|
|
||||||
});
|
});
|
||||||
} else if (completion === '@room') {
|
} else if (completion === '@room') {
|
||||||
inline = Inline.create({
|
inline = Inline.create({
|
||||||
@@ -1046,7 +1045,6 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
data: { completion, completionId },
|
data: { completion, completionId },
|
||||||
// we can't put text in here otherwise the editor tries to select it
|
// we can't put text in here otherwise the editor tries to select it
|
||||||
isVoid: true,
|
isVoid: true,
|
||||||
nodes: [],
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
inline = Inline.create({
|
inline = Inline.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user