Last message preview uses imagent provided description
This commit is contained in:
@@ -3680,6 +3680,16 @@ __attribute__((visibility("default"))) @interface IMService : NSObject { }
|
||||
|
||||
@end
|
||||
|
||||
typedef NS_ENUM(NSInteger, IMMessageDescriptionType) {
|
||||
IMMessageDescriptionAccessibility,
|
||||
IMMessageDescriptionAcknowledgement,
|
||||
IMMessageDescriptionConversationList,
|
||||
IMMessageDescriptionNotification,
|
||||
IMMessageDescriptionSiri,
|
||||
IMMessageDescriptionSPI,
|
||||
};
|
||||
|
||||
|
||||
@interface IMMessage : NSObject <NSCopying>
|
||||
{
|
||||
IMHandle *_sender;
|
||||
@@ -3804,8 +3814,8 @@ __attribute__((visibility("default"))) @interface IMService : NSObject { }
|
||||
- (id)_initWithSender:(id)arg1 time:(id)arg2 timeRead:(id)arg3 timeDelivered:(id)arg4 timePlayed:(id)arg5 plainText:(id)arg6 text:(id)arg7 messageSubject:(id)arg8 fileTransferGUIDs:(id)arg9 flags:(unsigned long long)arg10 error:(id)arg11 guid:(id)arg12 messageID:(long long)arg13 subject:(id)arg14 balloonBundleID:(id)arg15 payloadData:(id)arg16 expressiveSendStyleID:(id)arg17 timeExpressiveSendPlayed:(id)arg18 associatedMessageGUID:(id)arg19 associatedMessageType:(long long)arg20 associatedMessageRange:(struct _NSRange)arg21 messageSummaryInfo:(id)arg22;
|
||||
- (id)_copyWithFlags:(unsigned long long)arg1;
|
||||
- (id)copyWithZone:(struct _NSZone *)arg1;
|
||||
- (id)descriptionForPurpose:(long long)arg1 inChat:(id)arg2;
|
||||
- (id)descriptionForPurpose:(long long)arg1;
|
||||
- (id)descriptionForPurpose:(IMMessageDescriptionType)arg1 inChat:(id)arg2;
|
||||
- (id)descriptionForPurpose:(IMMessageDescriptionType)arg1;
|
||||
- (void)_ovverrideGUIDForTest:(id)arg1;
|
||||
@property(readonly, nonatomic) BOOL isAssociatedMessage;
|
||||
- (id)initWithSender:(id)arg1 time:(id)arg2 text:(id)arg3 messageSubject:(id)arg4 fileTransferGUIDs:(id)arg5 flags:(unsigned long long)arg6 error:(id)arg7 guid:(id)arg8 subject:(id)arg9 associatedMessageGUID:(id)arg10 associatedMessageType:(long long)arg11 associatedMessageRange:(struct _NSRange)arg12 associatedMessageInfo:(id)arg13;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
IMMessage *lastMessage = [self lastMessage];
|
||||
if (lastMessage) {
|
||||
chatDict[@"lastMessagePreview"] = [[lastMessage text] string];
|
||||
chatDict[@"lastMessagePreview"] = [lastMessage descriptionForPurpose:IMMessageDescriptionConversationList];
|
||||
}
|
||||
|
||||
NSMutableArray *participantStrings = [NSMutableArray array];
|
||||
|
||||
Reference in New Issue
Block a user