RoomVC: Make membership events use less screen

Fix senderInformation (avatar and displayname) for the 1st message when an user joins and talks in a row
This commit is contained in:
manuroe
2017-07-05 14:54:12 +02:00
parent e0b3d65a7b
commit abf3a78421
+10
View File
@@ -447,6 +447,16 @@ static NSAttributedString *readReceiptVerticalWhitespace = nil;
return readReceiptVerticalWhitespace;
}
- (BOOL)hasSameSenderAsBubbleCellData:(id<MXKRoomBubbleCellDataStoring>)bubbleCellData
{
if (self.tag == RoomBubbleCellDataTagMembership || bubbleCellData.tag == RoomBubbleCellDataTagMembership)
{
// We do not want to merge membership event cells with other cell types
return NO;
}
return [super hasSameSenderAsBubbleCellData:bubbleCellData];
}
- (BOOL)addEvent:(MXEvent*)event andRoomState:(MXRoomState*)roomState
{