mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 03:28:52 +01:00
Conversation as field in Message
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
package interactor
|
||||
|
||||
import io.reactivex.Flowable
|
||||
import model.Conversation
|
||||
import model.Message
|
||||
import repository.MessageRepository
|
||||
import javax.inject.Inject
|
||||
@@ -32,7 +33,7 @@ class RetrySending @Inject constructor(private val messageRepo: MessageRepositor
|
||||
val message = Message().apply {
|
||||
id = params.id
|
||||
type = params.type
|
||||
threadId = params.threadId
|
||||
conversation = params.conversation?.id?.let { threadId -> Conversation().apply { id = threadId } }
|
||||
address = params.address
|
||||
body = params.body
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user