Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 1412998b4a
commit 92a9796e9e

@ -6,6 +6,7 @@
#import "OWSBezierPathView.h" #import "OWSBezierPathView.h"
#import "OWSProgressView.h" #import "OWSProgressView.h"
#import <SignalMessaging/UIView+OWS.h> #import <SignalMessaging/UIView+OWS.h>
#import <SignalServiceKit/AppContext.h>
#import <SignalServiceKit/OWSUploadOperation.h> #import <SignalServiceKit/OWSUploadOperation.h>
#import <SignalServiceKit/TSAttachmentStream.h> #import <SignalServiceKit/TSAttachmentStream.h>
@ -149,7 +150,7 @@ NS_ASSUME_NONNULL_BEGIN
const CGFloat kBubbleTailWidth = 6.f; const CGFloat kBubbleTailWidth = 6.f;
CGRect bounds = self.bounds; CGRect bounds = self.bounds;
bounds.size.width -= kBubbleTailWidth; bounds.size.width -= kBubbleTailWidth;
if (self.isRTL) { if (CurrentAppContext().isRTL) {
bounds.origin.x += kBubbleTailWidth; bounds.origin.x += kBubbleTailWidth;
} }

@ -771,11 +771,10 @@ NSString *const OWSContactsManagerSignalAccountsDidChangeNotification
if (profileName.length > 0) { if (profileName.length > 0) {
NSAttributedString *result = NSAttributedString *result =
[[NSAttributedString alloc] initWithString:recipientId attributes:primaryAttributes]; [[NSAttributedString alloc] initWithString:recipientId attributes:primaryAttributes];
result = [result rtlSafeAppend:[[NSAttributedString alloc] initWithString:@" "] referenceView:[UIView new]]; result = [result rtlSafeAppend:[[NSAttributedString alloc] initWithString:@" "]];
result = [result rtlSafeAppend:[[NSAttributedString alloc] initWithString:@"~"] referenceView:[UIView new]]; result = [result rtlSafeAppend:[[NSAttributedString alloc] initWithString:@"~"]];
result = result = [result
[result rtlSafeAppend:[[NSAttributedString alloc] initWithString:profileName attributes:secondaryAttributes] rtlSafeAppend:[[NSAttributedString alloc] initWithString:profileName attributes:secondaryAttributes]];
referenceView:[UIView new]];
return [result copy]; return [result copy];
} }

Loading…
Cancel
Save