From 2c3466b4c39f9a3801330d4ce640e77045d386d3 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Fri, 1 Dec 2023 19:30:48 +0800 Subject: [PATCH] `Shamrock`: fix 96 crash --- .../GuildInteractiveNotificationItem.java | 4 ++++ .../nativeinterface/GuildNotificationAbstractInfo.java | 4 ++++ .../kernel/nativeinterface/IKernelMsgListener.java | 4 ++++ .../shamrock/remote/service/listener/AioListener.kt | 10 +++++++++- 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildInteractiveNotificationItem.java create mode 100644 qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildNotificationAbstractInfo.java diff --git a/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildInteractiveNotificationItem.java b/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildInteractiveNotificationItem.java new file mode 100644 index 0000000..3480201 --- /dev/null +++ b/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildInteractiveNotificationItem.java @@ -0,0 +1,4 @@ +package com.tencent.qqnt.kernel.nativeinterface; + +public class GuildInteractiveNotificationItem { +} diff --git a/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildNotificationAbstractInfo.java b/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildNotificationAbstractInfo.java new file mode 100644 index 0000000..b917d0d --- /dev/null +++ b/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GuildNotificationAbstractInfo.java @@ -0,0 +1,4 @@ +package com.tencent.qqnt.kernel.nativeinterface; + +public class GuildNotificationAbstractInfo { +} diff --git a/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IKernelMsgListener.java b/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IKernelMsgListener.java index c9a9201..f2a4255 100644 --- a/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IKernelMsgListener.java +++ b/qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IKernelMsgListener.java @@ -42,6 +42,10 @@ public interface IKernelMsgListener { void onGroupTransferInfoUpdate(GroupFileListResult groupFileListResult); + void onGuildInteractiveUpdate(GuildInteractiveNotificationItem guildInteractiveNotificationItem); + + void onGuildNotificationAbstractUpdate(GuildNotificationAbstractInfo guildNotificationAbstractInfo); + void onHitCsRelatedEmojiResult(DownloadRelateEmojiResultInfo downloadRelateEmojiResultInfo); void onHitEmojiKeywordResult(HitRelatedEmojiWordsResult hitRelatedEmojiWordsResult); diff --git a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt index 0130552..11cf001 100644 --- a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt +++ b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt @@ -358,7 +358,7 @@ internal object AioListener: IKernelMsgListener { } override fun onRichMediaUploadComplete(notifyInfo: FileTransNotifyInfo) { - //LogCenter.log("onRichMediaUploadComplete($notifyInfo)", Level.DEBUG) + LogCenter.log("onRichMediaUploadComplete($notifyInfo)", Level.DEBUG) RichMediaUploadHandler.notify(notifyInfo) } @@ -398,6 +398,14 @@ internal object AioListener: IKernelMsgListener { LogCenter.log("onGroupTransferInfoUpdate: " + groupFileListResult.toString(), Level.DEBUG) } + override fun onGuildInteractiveUpdate(guildInteractiveNotificationItem: GuildInteractiveNotificationItem?) { + + } + + override fun onGuildNotificationAbstractUpdate(guildNotificationAbstractInfo: GuildNotificationAbstractInfo?) { + + } + override fun onHitCsRelatedEmojiResult(downloadRelateEmojiResultInfo: DownloadRelateEmojiResultInfo?) { }