Fix various share screen issues

pull/303/head
nielsandriesse 5 years ago
parent b8a25a7942
commit 19a0c325dd

@ -129,6 +129,9 @@ NS_ASSUME_NONNULL_BEGIN
[_tableViewController.view autoPinEdgeToSuperviewEdge:ALEdgeBottom]; [_tableViewController.view autoPinEdgeToSuperviewEdge:ALEdgeBottom];
self.tableViewController.tableView.rowHeight = UITableViewAutomaticDimension; self.tableViewController.tableView.rowHeight = UITableViewAutomaticDimension;
self.tableViewController.tableView.estimatedRowHeight = 60; self.tableViewController.tableView.estimatedRowHeight = 60;
BOOL isIphone6OrSmaller = (UIScreen.mainScreen.bounds.size.height - 667) < 1;
CGFloat bottomInset = isIphone6OrSmaller ? LKValues.mediumSpacing : 34.0f;
self.tableViewController.tableView.contentInset = UIEdgeInsetsMake(0, 0, bottomInset, 0);
} }
- (void)yapDatabaseModifiedExternally:(NSNotification *)notification - (void)yapDatabaseModifiedExternally:(NSNotification *)notification

@ -196,6 +196,9 @@ const CGFloat kContactCellAvatarTextMargin = 12;
name:kNSNotificationName_OtherUsersProfileDidChange name:kNSNotificationName_OtherUsersProfileDidChange
object:nil]; object:nil];
[self updateProfileName]; [self updateProfileName];
} else {
self.nameLabel.text = thread.name;
[self.nameLabel setNeedsLayout];
} }
[self updateAvatar]; [self updateAvatar];
@ -211,6 +214,9 @@ const CGFloat kContactCellAvatarTextMargin = 12;
- (void)updateAvatar - (void)updateAvatar
{ {
[LKStorage readWithBlock:^(YapDatabaseReadTransaction *transaction) {
[LKMentionsManager populateUserPublicKeyCacheIfNeededFor:self.thread.uniqueId in:transaction]; // FIXME: This is a terrible place to do this
}];
if (self.thread != nil) { if (self.thread != nil) {
[self.profilePictureView updateForThread:self.thread]; [self.profilePictureView updateForThread:self.thread];
} else { } else {

Loading…
Cancel
Save