[RoomBubbleCellData] Update way to put tag `RoomBubbleCellDataTagRoomCreateWithPredecessor

This commit is contained in:
SBiOSoftWhare
2018-08-07 11:25:04 +02:00
parent c3a0dd0a59
commit 19d1c0dbf8
@@ -45,9 +45,14 @@ static NSAttributedString *readReceiptVerticalWhitespace = nil;
self.collapsed = YES;
}
if (event.eventType == MXEventTypeRoomCreate && roomState.hasRoomPredecessor)
if (event.eventType == MXEventTypeRoomCreate)
{
self.tag = RoomBubbleCellDataTagRoomCreateWithPredecessor;
MXRoomCreateContent *createContent = [MXRoomCreateContent modelFromJSON:event.content];
if (createContent.roomPredecessorInfo)
{
self.tag = RoomBubbleCellDataTagRoomCreateWithPredecessor;
}
}
// Increase maximum number of components