mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Update widget after sending message
This commit is contained in:
@@ -30,7 +30,8 @@ import javax.inject.Inject
|
||||
class SendMessage @Inject constructor(
|
||||
private val context: Context,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val messageRepo: MessageRepository
|
||||
private val messageRepo: MessageRepository,
|
||||
private val updateBadge: UpdateBadge
|
||||
) : Interactor<SendMessage.Params>() {
|
||||
|
||||
data class Params(
|
||||
@@ -63,5 +64,6 @@ class SendMessage @Inject constructor(
|
||||
}
|
||||
.doOnNext { threadId -> conversationRepo.updateConversations(threadId) }
|
||||
.doOnNext { threadId -> conversationRepo.markUnarchived(threadId) }
|
||||
.flatMap { updateBadge.buildObservable(Unit) } // Update the widget
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user