Skip to content

Commit

Permalink
Fix the spinning circle in receiving fucking msg
Browse files Browse the repository at this point in the history
  • Loading branch information
whitechi73 committed Jan 24, 2024
1 parent 5b6659c commit 9a28fff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/main/java/moe/qwq/miko/ActionManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ object ActionManager {
SimplifyHomepageSidebar::class.java,
DefaultPacketHijacker::class.java,
HotUpdateSoPatch::class.java,

RepeatMessage::class.java
)

private val instanceMap = hashMapOf<Class<*>, IAction>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal object NTServiceFetcher {
if (cmd == "trpc.msg.register_proxy.RegisterProxy.InfoSyncPush") {
val syncPush = ProtoBuf.decodeFromByteArray<InfoSyncPush>(buffer)
if (AioListener.onInfoSyncPush(syncPush)) {
it.result = ProtoBuf.encodeToByteArray(syncPush.copy(
it.args[1] = ProtoBuf.encodeToByteArray(syncPush.copy(
syncContent = syncPush.syncContent?.copy(body = ArrayList(0))
))
}
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/moe/qwq/miko/internals/hooks/RepeatMessage.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package moe.qwq.miko.internals.hooks

import android.content.Context
import moe.qwq.miko.actions.IAction

class RepeatMessage: IAction {
override fun invoke(ctx: Context) {

}
}

0 comments on commit 9a28fff

Please sign in to comment.