diff --git a/src/components/views/elements/Pill.js b/src/components/views/elements/Pill.js
index c4bf9de120..fdd657470e 100644
--- a/src/components/views/elements/Pill.js
+++ b/src/components/views/elements/Pill.js
@@ -173,11 +173,11 @@ const Pill = React.createClass({
if (this.state.pillType) {
return this.props.inMessage ?
-
+
{avatar}
{linkText}
:
-
+
{avatar}
{linkText}
;
diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js
index 2863b13243..5e451e07ac 100644
--- a/src/components/views/rooms/MessageComposerInput.js
+++ b/src/components/views/rooms/MessageComposerInput.js
@@ -186,16 +186,16 @@ export default class MessageComposerInput extends React.Component {
RichText.getScopedMDDecorators(this.props);
decorators.push({
strategy: this.findLinkEntities.bind(this),
- component: (props) => {
+ component: (entityProps) => {
const Pill = sdk.getComponent('elements.Pill');
- const {url} = Entity.get(props.entityKey).getData();
+ const {url} = Entity.get(entityProps.entityKey).getData();
if (Pill.isPillUrl(url)) {
- return ;
+ return ;
}
return (
-
- {props.children}
+
+ {entityProps.children}
);
},