handle workResult

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-10-25 09:17:30 +02:00 committed by Marcel Hibbe
parent 088e6fd79f
commit aa5fd42c59
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -38,6 +38,7 @@ class LeaveConversationWorker(val context: Context, workerParams: WorkerParamete
override fun doWork(): Result {
NextcloudTalkApplication.sharedApplication!!.componentApplication.inject(this)
val data = inputData
val conversationToken = data.getString(BundleKeys.KEY_ROOM_TOKEN)
val currentUser = userManager.currentUser.blockingGet()
@ -78,6 +79,9 @@ class LeaveConversationWorker(val context: Context, workerParams: WorkerParamete
}
})
}else{
workResult = Result.failure()
}
return workResult