refactor(core): unused code

This commit is contained in:
rhunk 2023-11-11 23:35:35 +01:00
parent 96183921dc
commit ff79f2009d

View File

@ -43,10 +43,6 @@ class HalfSwipeNotifier : Feature("Half Swipe Notifier", loadParams = FeatureLoa
presenceService = it.thisObject() presenceService = it.thisObject()
} }
PendingIntent::class.java.methods.find { it.name == "getActivity" }?.hook(HookStage.BEFORE) { param ->
context.log.verbose(param.args().toList())
}
context.mappings.getMappedClass("callbacks", "PresenceServiceDelegate") context.mappings.getMappedClass("callbacks", "PresenceServiceDelegate")
.hook("notifyActiveConversationsChanged", HookStage.BEFORE) { .hook("notifyActiveConversationsChanged", HookStage.BEFORE) {
val activeConversations = presenceService::class.java.methods.find { it.name == "getActiveConversations" }?.invoke(presenceService) as? Map<*, *> ?: return@hook // conversationId, conversationInfo (this.mPeekingParticipants) val activeConversations = presenceService::class.java.methods.find { it.name == "getActiveConversations" }?.invoke(presenceService) as? Map<*, *> ?: return@hook // conversationId, conversationInfo (this.mPeekingParticipants)