mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
MELS: Use normal membership cell for single membership event
This commit is contained in:
parent
d2d31532a9
commit
b859d64174
1 changed files with 15 additions and 13 deletions
|
@ -1553,27 +1553,29 @@
|
|||
}
|
||||
else if (bubbleData.tag == RoomBubbleCellDataTagMembership)
|
||||
{
|
||||
if (bubbleData.isPaginationFirstBubble)
|
||||
if (bubbleData.collapsed)
|
||||
{
|
||||
cellViewClass = RoomMembershipBubbleCellWithPaginationTitleBubbleCell.class;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (bubbleData.collapsed)
|
||||
if (bubbleData.nextCollapsableCellData)
|
||||
{
|
||||
cellViewClass = RoomMembershipCollapsedBubbleCell.class;
|
||||
}
|
||||
else if (bubbleData.collapsedAttributedTextMessage)
|
||||
{
|
||||
// The cell (and its serie) is not collapsed but this cell is the first
|
||||
// of the serie. So, use the cell with the "collapse" button
|
||||
cellViewClass = RoomMembershipExpandedBubbleCell.class;
|
||||
}
|
||||
else
|
||||
{
|
||||
cellViewClass = RoomMembershipBubbleCell.class;
|
||||
// Use a normal membership cell for a single membership event
|
||||
bubbleData.attributedTextMessage = bubbleData.attributedTextMessageBackup;
|
||||
cellViewClass = bubbleData.isPaginationFirstBubble ? RoomMembershipBubbleCellWithPaginationTitleBubbleCell.class : RoomMembershipBubbleCell.class;
|
||||
}
|
||||
}
|
||||
else if (bubbleData.collapsedAttributedTextMessage)
|
||||
{
|
||||
// The cell (and its serie) is not collapsed but this cell is the first
|
||||
// of the serie. So, use the cell with the "collapse" button.
|
||||
cellViewClass = RoomMembershipExpandedBubbleCell.class;
|
||||
}
|
||||
else
|
||||
{
|
||||
cellViewClass = bubbleData.isPaginationFirstBubble ? RoomMembershipBubbleCellWithPaginationTitleBubbleCell.class : RoomMembershipBubbleCell.class;
|
||||
}
|
||||
}
|
||||
else if (bubbleData.isIncoming)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue