mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 12:46:58 +02:00
Groups: self-management of membership of groups
- Bug Fix: App layout is broken on iPad after having left a group. - Improve the display of the Group Details Home screen vector-im/riot-meta#114 vector-im/riot-meta#115
This commit is contained in:
@@ -265,12 +265,21 @@
|
||||
}
|
||||
|
||||
[self.inviteContainer layoutIfNeeded];
|
||||
_separatorViewTopConstraint.constant = self.inviteContainer.frame.size.height;
|
||||
|
||||
if (_separatorViewTopConstraint.constant != self.inviteContainer.frame.size.height)
|
||||
{
|
||||
_separatorViewTopConstraint.constant = self.inviteContainer.frame.size.height;
|
||||
[self.view layoutIfNeeded];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
self.inviteContainer.hidden = YES;
|
||||
_separatorViewTopConstraint.constant = 0;
|
||||
if (_separatorViewTopConstraint.constant != 0)
|
||||
{
|
||||
_separatorViewTopConstraint.constant = 0;
|
||||
[self.view layoutIfNeeded];
|
||||
}
|
||||
}
|
||||
|
||||
if (_group.summary.profile.longDescription.length)
|
||||
@@ -278,6 +287,11 @@
|
||||
//@TODO: implement a specific html renderer to support h1/h2 and handle the Matrix media content URI (in the form of "mxc://...").
|
||||
MXKEventFormatter *eventFormatter = [[MXKEventFormatter alloc] initWithMatrixSession:self.mxSession];
|
||||
_groupLongDescription.attributedText = [eventFormatter renderHTMLString:_group.summary.profile.longDescription forEvent:nil];
|
||||
_groupLongDescription.contentOffset = CGPointZero;
|
||||
}
|
||||
else
|
||||
{
|
||||
_groupLongDescription.text = nil;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user