forked from upstream-mirrors/quik
Show blocking reason if available
This commit is contained in:
@@ -29,14 +29,14 @@ interface BlockingClient {
|
||||
CANT_BLOCK
|
||||
}
|
||||
|
||||
enum class Action {
|
||||
BLOCK,
|
||||
UNBLOCK,
|
||||
sealed class Action {
|
||||
class Block(val reason: String? = null) : Action()
|
||||
object Unblock : Action()
|
||||
|
||||
// We only need these for Should I Answer, because they don't allow us to block numbers in their app directly.
|
||||
// This means there's a good chance that if a number is blocked in QK, it won't be blocked there, so we
|
||||
// shouldn't unblock the conversation in that case
|
||||
DO_NOTHING
|
||||
object DoNothing : Action()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user