mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 12:35:30 +03:00
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
9df91b6e74
commit
f6489eb10d
2 changed files with 7 additions and 5 deletions
|
@ -660,11 +660,13 @@ class ConversationInfoActivity :
|
|||
startActivity(intent)
|
||||
}
|
||||
WorkInfo.State.FAILED -> {
|
||||
|
||||
Toast.makeText(context, R.string.nc_last_moderator_leaving_room_warning, Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(
|
||||
context,
|
||||
R.string.nc_last_moderator_leaving_room_warning,
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
}
|
||||
else -> {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,13 +53,13 @@ class LeaveConversationWorker(context: Context, workerParams: WorkerParameters)
|
|||
val apiVersion = getConversationApiVersion(currentUser, intArrayOf(ApiUtils.API_V4, 1))
|
||||
|
||||
ncApi.removeSelfFromRoom(
|
||||
credentials, getUrlForParticipantsSelf(apiVersion, currentUser.baseUrl, conversationToken)
|
||||
credentials,
|
||||
getUrlForParticipantsSelf(apiVersion, currentUser.baseUrl, conversationToken)
|
||||
)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(object : Observer<GenericOverall?> {
|
||||
override fun onSubscribe(d: Disposable) {
|
||||
|
||||
}
|
||||
|
||||
override fun onNext(p0: GenericOverall) {
|
||||
|
|
Loading…
Reference in a new issue