Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ internal object LoadInboxAdsFingerprint : Fingerprint(
"InboxAdsItemSupplierImplementation;"
},
)

internal object FriendsInboxTrayFingerprint : Fingerprint(
returnType = "Z",
strings = listOf("com.facebook.messaging.friendsinboxunit.plugins.inboxunit.FriendsInboxUnitKillSwitch"),
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package app.morphe.patches.messenger.inbox

import app.morphe.patches.shared.compat.AppCompatibilities
import app.morphe.patcher.extensions.InstructionExtensions.addInstructions
import app.morphe.patcher.patch.bytecodePatch

@Suppress("unused")
val hideInboxStoriesNotesTrayPatch = bytecodePatch(
name = "Hide inbox stories and notes tray",
description = "Hides the stories and notes horizontal tray at the top of the inbox.",
) {
compatibleWith(AppCompatibilities.MESSENGER)

execute {
FriendsInboxTrayFingerprint.method.addInstructions(
0,
"""
const/4 v0, 0x0
return v0
""".trimIndent()
)
}
}