diff --git a/src/components/views/messages/MessageEvent.js b/src/components/views/messages/MessageEvent.js
index 0863fe0842..26658c3005 100644
--- a/src/components/views/messages/MessageEvent.js
+++ b/src/components/views/messages/MessageEvent.js
@@ -22,12 +22,6 @@ var sdk = require('../../../index');
module.exports = React.createClass({
displayName: 'MessageEvent',
- statics: {
- needsSenderProfile: function() {
- return true;
- }
- },
-
propTypes: {
/* the MatrixEvent to show */
mxEvent: React.PropTypes.object.isRequired,
diff --git a/src/components/views/messages/TextualEvent.js b/src/components/views/messages/TextualEvent.js
index 7cab98ea84..8319dbd434 100644
--- a/src/components/views/messages/TextualEvent.js
+++ b/src/components/views/messages/TextualEvent.js
@@ -24,12 +24,6 @@ import sdk from '../../../index';
module.exports = React.createClass({
displayName: 'TextualEvent',
- statics: {
- needsSenderProfile: function() {
- return false;
- }
- },
-
render: function() {
const EmojiText = sdk.getComponent('elements.EmojiText');
var text = TextForEvent.textForEvent(this.props.mxEvent);
@@ -39,4 +33,3 @@ module.exports = React.createClass({
);
},
});
-
diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js
index b33860b7b3..b1df3f3267 100644
--- a/src/components/views/rooms/EventTile.js
+++ b/src/components/views/rooms/EventTile.js
@@ -62,7 +62,7 @@ var MAX_READ_AVATARS = 5;
// '----------------------------------------------------------'
module.exports = React.createClass({
- displayName: 'Event',
+ displayName: 'EventTile',
statics: {
haveTileForEvent: function(e) {
@@ -368,7 +368,7 @@ module.exports = React.createClass({
// room, or emote messages
var isInfoMessage = (msgtype === 'm.emote' || eventType !== 'm.room.message');
- var EventTileType = sdk.getComponent(eventTileTypes[this.props.mxEvent.getType()]);
+ var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
// This shouldn't happen: the caller should check we support this type
// before trying to instantiate us
if (!EventTileType) {
@@ -395,31 +395,44 @@ module.exports = React.createClass({