Show blocking reason if available

This commit is contained in:
moezbhatti
2019-10-10 19:15:38 -04:00
parent 56d13dfe3e
commit d46193abba
16 changed files with 182 additions and 80 deletions
@@ -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()
}
/**