diff --git a/app/src/main/java/com/grindrplus/commands/Profile.kt b/app/src/main/java/com/grindrplus/commands/Profile.kt index 746c94b..5ccb708 100644 --- a/app/src/main/java/com/grindrplus/commands/Profile.kt +++ b/app/src/main/java/com/grindrplus/commands/Profile.kt @@ -56,6 +56,15 @@ class Profile( } } + @Command("clear", aliases = ["reset"], help = "Reset chat with a user") + fun reset(args: List) { + 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) { val silent = "silent" in args