Respond to CR.

This commit is contained in:
Matthew Chen 2018-07-02 15:33:21 -04:00
parent 1412998b4a
commit 92a9796e9e
2 changed files with 6 additions and 6 deletions

View file

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

View file

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