forked from upstream-mirrors/quik
Don't allow incoming messages if blocked via SIA
This commit is contained in:
@@ -60,7 +60,6 @@ class MessageRepositoryImpl @Inject constructor(
|
||||
private val messageIds: KeyManager,
|
||||
private val cursorToConversation: CursorToConversation,
|
||||
private val cursorToRecipient: CursorToRecipient,
|
||||
private val externalBlockingManager: ExternalBlockingManager,
|
||||
private val prefs: Preferences) : MessageRepository {
|
||||
|
||||
override fun getConversations(archived: Boolean): Flowable<List<Conversation>> {
|
||||
@@ -625,11 +624,6 @@ class MessageRepositoryImpl @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
// If any of the addresses here should be blocked, then block the conversation
|
||||
conversation.blocked = recipients.map { it.address }.any { address ->
|
||||
externalBlockingManager.shouldBlock(address).blockingGet()
|
||||
}
|
||||
|
||||
conversation.recipients.clear()
|
||||
conversation.recipients.addAll(recipients)
|
||||
conversation.insertOrUpdate()
|
||||
|
||||
Reference in New Issue
Block a user