mirror of
https://github.com/Sunnyyoung/WeChatTweak-macOS.git
synced 2025-07-08 00:26:06 +08:00
parent
b55c93d18f
commit
2fa2542c22
Binary file not shown.
|
@ -46,7 +46,7 @@ static void __attribute__((constructor)) tweak(void) {
|
|||
data.mesLocalID = localMessageData.mesLocalID;
|
||||
data.msgContent = replaceMessage;
|
||||
} else {
|
||||
data.mesLocalID = localMessageData.mesLocalID + 1;
|
||||
data.mesLocalID = localMessageData.mesLocalID;
|
||||
data.msgContent = [NSString stringWithFormat:@"[已拦截]\n%@", replaceMessage];
|
||||
}
|
||||
data;
|
||||
|
@ -74,9 +74,9 @@ static void __attribute__((constructor)) tweak(void) {
|
|||
// Delete message if it is revoke from myself
|
||||
if ([localMessageData isSendFromSelf]) {
|
||||
[((MessageService *)self) DelMsg:session msgList:@[localMessageData] isDelAll:NO isManual:YES];
|
||||
[((MessageService *)self) AddRevokePromptMsg:session msgData:promptMessageData];
|
||||
[((MessageService *)self) AddLocalMsg:session msgData:promptMessageData];
|
||||
} else {
|
||||
[((MessageService *)self) AddRevokePromptMsg:session msgData:promptMessageData];
|
||||
[((MessageService *)self) AddLocalMsg:session msgData:promptMessageData];
|
||||
[((MessageService *)self) notifyAddMsgOnMainThread:session msgData:promptMessageData];
|
||||
}
|
||||
// Deliver notification
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
- (id)GetMsgData:(id)arg1 svrId:(unsigned long long)arg2;
|
||||
- (void)DelMsg:(id)arg1 msgList:(id)arg2 isDelAll:(BOOL)arg3 isManual:(BOOL)arg4;
|
||||
- (void)AddRevokePromptMsg:(id)arg1 msgData:(id)arg2;
|
||||
- (void)AddLocalMsg:(id)arg1 msgData:(id)arg2;
|
||||
- (void)notifyAddMsgOnMainThread:(id)arg1 msgData:(id)arg2;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue
Block a user