forked from upstream-mirrors/quik
#1488 - Mark incoming blocked messages as read
This commit is contained in:
@@ -67,7 +67,10 @@ class ReceiveMms @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
when (action) {
|
when (action) {
|
||||||
BlockingClient.Action.BLOCK -> conversationRepo.markBlocked(message.threadId)
|
BlockingClient.Action.BLOCK -> {
|
||||||
|
messageRepo.markRead(message.threadId)
|
||||||
|
conversationRepo.markBlocked(message.threadId)
|
||||||
|
}
|
||||||
BlockingClient.Action.UNBLOCK -> conversationRepo.markUnblocked(message.threadId)
|
BlockingClient.Action.UNBLOCK -> conversationRepo.markUnblocked(message.threadId)
|
||||||
else -> Unit
|
else -> Unit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,10 @@ class ReceiveSms @Inject constructor(
|
|||||||
val message = messageRepo.insertReceivedSms(it.subId, address, body, time)
|
val message = messageRepo.insertReceivedSms(it.subId, address, body, time)
|
||||||
|
|
||||||
when (action) {
|
when (action) {
|
||||||
BlockingClient.Action.BLOCK -> conversationRepo.markBlocked(message.threadId)
|
BlockingClient.Action.BLOCK -> {
|
||||||
|
messageRepo.markRead(message.threadId)
|
||||||
|
conversationRepo.markBlocked(message.threadId)
|
||||||
|
}
|
||||||
BlockingClient.Action.UNBLOCK -> conversationRepo.markUnblocked(message.threadId)
|
BlockingClient.Action.UNBLOCK -> conversationRepo.markUnblocked(message.threadId)
|
||||||
else -> Unit
|
else -> Unit
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user