fix up memberlist a bit more

pull/1/head
Matthew Hodgson 2015-07-17 21:29:41 +01:00
parent 6280adc6e7
commit 348aa3e5e1
1 changed files with 5 additions and 2 deletions

View File

@ -252,8 +252,11 @@ module.exports = {
if (i > 0 && count < this.state.messageCap - 1) {
if (this.state.room.timeline[i].sender &&
this.state.room.timeline[i - 1].sender &&
this.state.room.timeline[i].sender.userId ===
this.state.room.timeline[i - 1].sender.userId)
(this.state.room.timeline[i].sender.userId ===
this.state.room.timeline[i - 1].sender.userId) &&
(this.state.room.timeline[i].getType() ==
this.state.room.timeline[i - 1].getType())
)
{
continuation = true;
}