Fix crash when blocking and leaving a spam group.
This commit is contained in:
parent
8936d81bc7
commit
4cd9ccc0f1
1 changed files with 5 additions and 1 deletions
|
@ -178,7 +178,11 @@ class ConversationSettingsRepository(
|
|||
fun block(recipientId: RecipientId) {
|
||||
SignalExecutors.BOUNDED.execute {
|
||||
val recipient = Recipient.resolved(recipientId)
|
||||
RecipientUtil.blockNonGroup(context, recipient)
|
||||
if (recipient.isGroup) {
|
||||
RecipientUtil.block(context, recipient)
|
||||
} else {
|
||||
RecipientUtil.blockNonGroup(context, recipient)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue