Fix group conversation layout

This commit is contained in:
Niels Andriesse 2020-03-10 15:02:52 +11:00
parent 94b85e8309
commit 0697c95426
3 changed files with 5 additions and 3 deletions

View file

@ -229,7 +229,7 @@ NS_ASSUME_NONNULL_BEGIN
if ([self updateAvatarView]) { if ([self updateAvatarView]) {
[self.viewConstraints addObjectsFromArray:@[ [self.viewConstraints addObjectsFromArray:@[
[self.messageBubbleView autoPinLeadingToTrailingEdgeOfView:self.avatarView offset:LKValues.largeSpacing], [self.messageBubbleView autoPinLeadingToTrailingEdgeOfView:self.avatarView offset:12],
[self.messageBubbleView autoPinEdge:ALEdgeTop toEdge:ALEdgeTop ofView:self.avatarView], [self.messageBubbleView autoPinEdge:ALEdgeTop toEdge:ALEdgeTop ofView:self.avatarView],
]]; ]];

View file

@ -95,7 +95,7 @@ public class ConversationStyle: NSObject {
gutterLeading = 16 gutterLeading = 16
gutterTrailing = 16 gutterTrailing = 16
} else { } else {
gutterLeading = 16 + 35 + 24 // Values.mediumSpacing + Values.smallProfilePictureSize + Values.largeSpacing gutterLeading = 12 + 35 + 12 // 12 + Values.smallProfilePictureSize + 12
gutterTrailing = 16 gutterTrailing = 16
} }
} else { } else {

View file

@ -356,7 +356,9 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
OWSAssertDebug([message.body lengthOfBytesUsingEncoding:NSUTF8StringEncoding] <= kOversizeTextMessageSizeThreshold); OWSAssertDebug([message.body lengthOfBytesUsingEncoding:NSUTF8StringEncoding] <= kOversizeTextMessageSizeThreshold);
} }
[NSNotificationCenter.defaultCenter postNotificationName:NSNotification.calculatingPoW object:[[NSNumber alloc] initWithUnsignedLongLong:message.timestamp]]; // Not really true but better from a UI point of view if (!message.isGroupChatMessage) {
[NSNotificationCenter.defaultCenter postNotificationName:NSNotification.calculatingPoW object:[[NSNumber alloc] initWithUnsignedLongLong:message.timestamp]]; // Not really true but better from a UI point of view
}
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSMutableArray<NSString *> *allAttachmentIds = [NSMutableArray new]; NSMutableArray<NSString *> *allAttachmentIds = [NSMutableArray new];