From 64e4febabdd81cf931ada438d65a0e2fc9065872 Mon Sep 17 00:00:00 2001 From: Sunnyyoung Date: Wed, 9 Feb 2022 18:29:42 +0800 Subject: [PATCH] Fix #427 #428 --- WeChatTweak/AntiRevoke.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeChatTweak/AntiRevoke.m b/WeChatTweak/AntiRevoke.m index 4082f87..166d897 100644 --- a/WeChatTweak/AntiRevoke.m +++ b/WeChatTweak/AntiRevoke.m @@ -27,7 +27,7 @@ static void __attribute__((constructor)) tweak(void) { return [self tweak_FFToNameFavChatZZ:message sessionMsgList:sessionMsgList]; } // Decode message - NSDictionary *dictionary = [NSDictionary dictionaryWithXMLString:message.msgContent]; + NSDictionary *dictionary = [NSDictionary dictionaryWithXMLString:[message.msgContent componentsSeparatedByCharactersInSet:NSCharacterSet.newlineCharacterSet].lastObject]; NSString *session = dictionary[@"revokemsg"][@"session"]; NSString *newMessageID = dictionary[@"revokemsg"][@"newmsgid"]; NSString *replaceMessage = dictionary[@"revokemsg"][@"replacemsg"];