diff --git a/patches/src/main/kotlin/app/revanced/patches/messenger/layout/RestoreOldEmojiDrawerPatch.kt b/patches/src/main/kotlin/app/revanced/patches/messenger/layout/RestoreOldEmojiDrawerPatch.kt index 72e2df46c4..232948b0ec 100644 --- a/patches/src/main/kotlin/app/revanced/patches/messenger/layout/RestoreOldEmojiDrawerPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/messenger/layout/RestoreOldEmojiDrawerPatch.kt @@ -14,10 +14,9 @@ val restoreOldEmojiDrawerPatch = bytecodePatch( compatibleWith("com.facebook.orca") apply { - val isRedesignedDrawerEnabledMethodReference = renderRedesignedDrawerMethodMatch.let { - it.method.getInstruction(it[0]).methodReference!! + val isRedesignedDrawerEnabledMethod = with(renderRedesignedDrawerMethodMatch) { + firstMethod(it.method.getInstruction(it[0]).methodReference!!) } - val isRedesignedDrawerEnabledMethod = firstMethod(isRedesignedDrawerEnabledMethodReference) isRedesignedDrawerEnabledMethod.returnEarly(false) } } \ No newline at end of file