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:
Giom Foret
2017-12-21 17:19:36 +01:00
parent ab19b8733c
commit 2a2ca1e1de
4 changed files with 63 additions and 2 deletions
+16 -2
View File
@@ -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