mirror of
https://github.com/Sunnyyoung/WeChatTweak-macOS.git
synced 2025-07-08 00:26:06 +08:00
Fix Group Chat Message Data Parse
This commit is contained in:
parent
c6e0daafb6
commit
02c0c1a1f5
Binary file not shown.
|
@ -333,12 +333,12 @@ static void __attribute__((constructor)) tweak(void) {
|
|||
MMMessageCellView *cell = (MMMessageCellView *)self;
|
||||
MessageData *messageData = cell.messageTableItem.message;
|
||||
NSString *content = messageData.msgContent;
|
||||
NSDictionary *dictionary = [NSDictionary dictionaryWithXMLString:content];
|
||||
NSDictionary *emojiDictionary = dictionary[@"emoji"];
|
||||
if (![emojiDictionary objectForKey:@"_md5"]) {
|
||||
NSString *emoji = [[content tweak_subStringFrom:@"<msg>" to:@"</msg>"] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
|
||||
NSDictionary *dictionary = [NSDictionary dictionaryWithXMLString:emoji];
|
||||
if (![dictionary objectForKey:@"_md5"]) {
|
||||
return;
|
||||
}
|
||||
NSString *stickerMD5 = emojiDictionary[@"_md5"];
|
||||
NSString *stickerMD5 = dictionary[@"_md5"];
|
||||
if (!stickerMD5.length) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user