Skip to content

Commit

Permalink
GrindrPlus: Add /clear command
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Nov 17, 2024
1 parent abf4ed3 commit 4521171
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/com/grindrplus/commands/Profile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ class Profile(
}
}

@Command("clear", aliases = ["reset"], help = "Reset chat with a user")
fun reset(args: List<String>) {
val profileId = if (args.isNotEmpty()) args[0] else sender
block(listOf(profileId, "silent"))
Thread.sleep(1000) // Wait for the block to take effect
unblock(listOf(profileId, "silent"))
openChat("$recipient:$profileId")
}

@Command("unblock", help = "Unblock a user")
fun unblock(args: List<String>) {
val silent = "silent" in args
Expand Down

0 comments on commit 4521171

Please sign in to comment.