mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
26 lines
502 B
Objective-C
26 lines
502 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "NSString+SSK.h"
|
|
#import "AppContext.h"
|
|
#import <SessionProtocolKit/SessionProtocolKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation NSString (SSK)
|
|
|
|
- (NSString *)rtlSafeAppend:(NSString *)string
|
|
{
|
|
OWSAssertDebug(string);
|
|
|
|
if (CurrentAppContext().isRTL) {
|
|
return [string stringByAppendingString:self];
|
|
} else {
|
|
return [self stringByAppendingString:string];
|
|
}
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|