mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix group conversation layout
This commit is contained in:
parent
94b85e8309
commit
0697c95426
3 changed files with 5 additions and 3 deletions
|
@ -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],
|
||||||
]];
|
]];
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue