[RoomViewController] Now use RoomPredecessorBubbleCell to display room predecessor informations.

This commit is contained in:
SBiOSoftWhare
2018-08-07 11:27:37 +02:00
parent d54ec8a120
commit 7c758bbfb1
+3 -2
View File
@@ -99,6 +99,7 @@
#import "RoomMembershipExpandedWithPaginationTitleBubbleCell.h"
#import "RoomSelectedStickerBubbleCell.h"
#import "RoomPredecessorBubbleCell.h"
#import "MXKRoomBubbleTableViewCell+Riot.h"
@@ -329,6 +330,7 @@
[self.bubblesTableView registerClass:RoomMembershipExpandedWithPaginationTitleBubbleCell.class forCellReuseIdentifier:RoomMembershipExpandedWithPaginationTitleBubbleCell.defaultReuseIdentifier];
[self.bubblesTableView registerClass:RoomSelectedStickerBubbleCell.class forCellReuseIdentifier:RoomSelectedStickerBubbleCell.defaultReuseIdentifier];
[self.bubblesTableView registerClass:RoomPredecessorBubbleCell.class forCellReuseIdentifier:RoomPredecessorBubbleCell.defaultReuseIdentifier];
// Prepare expanded header
expandedHeader = [ExpandedRoomTitleView roomTitleView];
@@ -1805,8 +1807,7 @@
}
else if (bubbleData.tag == RoomBubbleCellDataTagRoomCreateWithPredecessor)
{
// TODO: Use a custom suitable cell for room create predecessor
cellViewClass = RoomOutgoingTextMsgWithoutSenderInfoBubbleCell.class;
cellViewClass = RoomPredecessorBubbleCell.class;
}
else if (bubbleData.tag == RoomBubbleCellDataTagMembership)
{