mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
e930574b1b
This was done as part of unforking JSQMessagesViewController, but is intentionally a separate commit so we can separate formatting changes from code changes in git history. * Import frameworks like: #import <FrameworkName/HeaderName.h> * instead of: #import "HeaderName.h" // FREEBIE
28 lines
782 B
Objective-C
28 lines
782 B
Objective-C
// Created by Dylan Bourgeois on 29/11/14.
|
|
// Copyright (c) 2014 Hexed Bits. All rights reserved.
|
|
// Portions Copyright (c) 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
#import "OWSDisplayedMessage.h"
|
|
#import "TSMessageAdapter.h"
|
|
|
|
typedef NS_ENUM(NSInteger, OWSInfoMessageType) {
|
|
OWSInfoMessageTypeSessionDidEnd,
|
|
};
|
|
|
|
@interface OWSInfoMessage : OWSDisplayedMessage
|
|
|
|
@property (nonatomic) OWSInfoMessageType infoMessageType;
|
|
@property (nonatomic) TSMessageAdapterType messageType;
|
|
|
|
#pragma mark - Initialization
|
|
|
|
- (instancetype)initWithInfoType:(OWSInfoMessageType)messageType
|
|
senderId:(NSString *)senderId
|
|
senderDisplayName:(NSString *)senderDisplayName
|
|
date:(NSDate *)date;
|
|
|
|
- (NSString *)text;
|
|
|
|
|
|
@end
|