mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 03:28:52 +01:00
#1488 - Mark incoming blocked messages as read
This commit is contained in:
@@ -67,7 +67,10 @@ class ReceiveMms @Inject constructor(
|
||||
}
|
||||
|
||||
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)
|
||||
else -> Unit
|
||||
}
|
||||
|
||||
@@ -67,7 +67,10 @@ class ReceiveSms @Inject constructor(
|
||||
val message = messageRepo.insertReceivedSms(it.subId, address, body, time)
|
||||
|
||||
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)
|
||||
else -> Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user