null check

pull/379/head
David Baker 2015-11-05 17:40:37 +00:00
parent 0aa90d918c
commit e20388388e
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ module.exports = {
for (var i = this.state.room.timeline.length-1; i >= 0; --i) {
var ev = this.state.room.timeline[i];
if (ev.sender.userId == MatrixClientPeg.get().credentials.userId) {
if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) {
continue;
}