Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Associate lcck message with raw message #334

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChatKit/Class/Model/LCCKMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

@interface LCCKMessage : NSObject <NSCoding, NSCopying, LCCKMessageDelegate>

@property (nonatomic, strong) AVIMMessage *message;

@property (nonatomic, copy, readonly) NSString *text;
@property (nonatomic, copy, readonly) NSString *systemText;
@property (nonatomic, strong, readwrite) UIImage *photo;
Expand Down
1 change: 1 addition & 0 deletions ChatKit/Class/Model/LCCKMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ + (id)messageWithAVIMTypedMessage:(AVIMTypedMessage *)message {
lcckMessage.ownerType = LCCKMessageOwnerTypeOther;
}
lcckMessage.sendStatus = (LCCKMessageSendState)message.status;
lcckMessage.message = message;

return lcckMessage;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ - (void)sendMessage:(id)aMessage
message.sender = sender;
message.ownerType = LCCKMessageOwnerTypeSelf;
avimTypedMessage = [AVIMTypedMessage lcck_messageWithLCCKMessage:message];
message.message = avimTypedMessage;
} else {
avimTypedMessage = aMessage;
}
Expand Down