mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
GroupParticipantsViewController: support the self-sizing cells,
and the self-sizing section headers. vector-im/riot-meta#115
This commit is contained in:
@@ -298,6 +298,19 @@
|
||||
subLabelText = phoneNumber.textNumber;
|
||||
}
|
||||
}
|
||||
|
||||
if (subLabelText.length)
|
||||
{
|
||||
self.contactInformationLabel.hidden = NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Hide and fill the label with a fake string to harmonize the height of all the cells.
|
||||
// This is a drawback of the self-sizing cell.
|
||||
self.contactInformationLabel.hidden = YES;
|
||||
subLabelText = @"No method";
|
||||
}
|
||||
|
||||
self.contactInformationLabel.text = subLabelText;
|
||||
}
|
||||
|
||||
@@ -327,6 +340,18 @@
|
||||
{
|
||||
presenceText = NSLocalizedStringFromTable(@"room_participants_offline", @"Vector", nil);
|
||||
}
|
||||
|
||||
if (presenceText.length)
|
||||
{
|
||||
self.contactInformationLabel.hidden = NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Hide and fill the label with a fake string to harmonize the height of all the cells.
|
||||
// This is a drawback of the self-sizing cell.
|
||||
self.contactInformationLabel.hidden = YES;
|
||||
presenceText = @"No presence";
|
||||
}
|
||||
|
||||
self.contactInformationLabel.text = presenceText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user