diff --git a/src/components/views/rooms/PinnedEventTile.js b/src/components/views/rooms/PinnedEventTile.js
index cc086f66da..1279c01049 100644
--- a/src/components/views/rooms/PinnedEventTile.js
+++ b/src/components/views/rooms/PinnedEventTile.js
@@ -61,7 +61,9 @@ module.exports = createReactClass({
return this.props.mxRoom.currentState.mayClientSendStateEvent('m.room.pinned_events', MatrixClientPeg.get());
},
render: function() {
- const sender = this.props.mxRoom.getMember(this.props.mxEvent.getSender());
+ const sender = this.props.mxEvent.getSender();
+ // Get the latest sender profile rather than historical
+ const senderProfile = this.props.mxRoom.getMember(sender);
const avatarSize = 40;
let unpinButton = null;
@@ -83,10 +85,10 @@ module.exports = createReactClass({
-
+
- { sender.name }
+ { senderProfile ? senderProfile.name : sender }
{ formatFullDate(new Date(this.props.mxEvent.getTs())) }