mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
handle workResult
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
088e6fd79f
commit
aa5fd42c59
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,7 @@ class LeaveConversationWorker(val context: Context, workerParams: WorkerParamete
|
||||||
|
|
||||||
|
|
||||||
override fun doWork(): Result {
|
override fun doWork(): Result {
|
||||||
|
NextcloudTalkApplication.sharedApplication!!.componentApplication.inject(this)
|
||||||
val data = inputData
|
val data = inputData
|
||||||
val conversationToken = data.getString(BundleKeys.KEY_ROOM_TOKEN)
|
val conversationToken = data.getString(BundleKeys.KEY_ROOM_TOKEN)
|
||||||
val currentUser = userManager.currentUser.blockingGet()
|
val currentUser = userManager.currentUser.blockingGet()
|
||||||
|
@ -78,6 +79,9 @@ class LeaveConversationWorker(val context: Context, workerParams: WorkerParamete
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
|
||||||
|
workResult = Result.failure()
|
||||||
}
|
}
|
||||||
|
|
||||||
return workResult
|
return workResult
|
||||||
|
|
Loading…
Reference in a new issue