Removed Message Detail

This commit is contained in:
Jeason Lee 2019-01-15 16:42:04 +08:00
parent 0d8b4bc359
commit 20407a0d04
2 changed files with 8 additions and 2 deletions

View File

@ -100,8 +100,14 @@ static void __attribute__((constructor)) tweak(void) {
NSString *tips = [NSString stringWithFormat:[NSBundle.tweakBundle localizedStringForKey:@"Tweak.Message.CatchARecalledMessage"], userRevoke];
NSMutableString *msgContent = [NSMutableString stringWithString:tips];
switch (localMessageData.messageType) {
case 1: //Text
[msgContent appendFormat:@"\"%@\"", localMessageData.msgContent]; break;
case 1: { //Text
if (localMessageData.msgContent.length) {
[msgContent appendFormat:@"\"%@\"", localMessageData.msgContent];
} else {
[msgContent appendString:[NSBundle.tweakBundle localizedStringForKey:@"Tweak.Message.AMessage"]];
}
break;
}
case 3: //Photo
[msgContent appendFormat:@"<%@>", [NSBundle.tweakBundle localizedStringForKey:@"Tweak.Message.Photo"]]; break;
case 34: //Voice