diff options
author | Chris Ballinger <chrisballinger@gmail.com> | 2016-04-09 14:00:30 -0700 |
---|---|---|
committer | Chris Ballinger <chrisballinger@gmail.com> | 2016-04-09 14:00:30 -0700 |
commit | f505113fb7a6d61015ad8050b3fb4e26df029150 (patch) | |
tree | 0bdaba8f07189f3adc828c2895ce7429d9b3cb3e /xcode/OLMKit/OLMMessage.m | |
parent | 719eb543a8d08c4f536ea7933ffb3af0a8553e87 (diff) |
Initial test passing
Diffstat (limited to 'xcode/OLMKit/OLMMessage.m')
-rw-r--r-- | xcode/OLMKit/OLMMessage.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xcode/OLMKit/OLMMessage.m b/xcode/OLMKit/OLMMessage.m index ce732ec..d0cfb41 100644 --- a/xcode/OLMKit/OLMMessage.m +++ b/xcode/OLMKit/OLMMessage.m @@ -10,4 +10,15 @@ @implementation OLMMessage +- (nullable instancetype) initWithCiphertext:(nonnull NSString*)ciphertext type:(OLMMessageType)type { + NSParameterAssert(ciphertext != nil); + self = [super init]; + if (!self) { + return nil; + } + _ciphertext = [ciphertext copy]; + _type = type; + return self; +} + @end |