update message receiving job

This commit is contained in:
Ryan ZHAO 2020-12-18 16:43:57 +11:00
parent 2a4046d12c
commit b642fb1b54

View File

@ -1,5 +1,7 @@
package org.session.libsession.messaging.jobs
import nl.komponents.kovenant.Promise
class MessageReceiveJob(val data: ByteArray, val isBackgroundPoll: Boolean, val openGroupMessageServerID: Long? = null, val openGroupID: String? = null) : Job {
override var delegate: JobDelegate? = null
override var id: String? = null
@ -12,6 +14,10 @@ class MessageReceiveJob(val data: ByteArray, val isBackgroundPoll: Boolean, val
}
override fun execute() {
executeAsync().get()
}
fun executeAsync(): Promise<Unit, Exception> {
TODO("Not yet implemented")
}
}