Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 021fab57 authored by moezbhatti's avatar moezbhatti
Browse files

#1488 - Mark incoming blocked messages as read

parent 4c9130e1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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
                    }
+4 −1
Original line number Diff line number Diff line
@@ -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
                    }