fix: filter emoji un-like by operation
This commit is contained in:
1 parent
d61704f60d
commit
63dd1f4b1c
3 files changed
+40
-1
No files matched your search
@@ -255,6 +255,9 @@ export class NapCatOneBot11Adapter {
|
||||
.fromBinary(greyTip.rest)
|
||||
.wrapper!
|
||||
.body!;
|
||||
if (emojiLikeToOthers.attributes?.operation !== 1) { // Un-like
|
||||
return;
|
||||
}
|
||||
const eventOrEmpty = await this.apis.GroupApi.createGroupEmojiLikeEvent(
|
||||
greyTip.groupCode.toString(),
|
||||
await this.core.apis.UserApi.getUinByUidV2(emojiLikeToOthers.attributes!.senderUid),
|
||||
|
||||
Reference in new issue
Block a user