ktlintFormat

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-10-27 17:04:14 +01:00 committed by Marcel Hibbe
parent 9df91b6e74
commit f6489eb10d
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
2 changed files with 7 additions and 5 deletions

View File

@ -660,11 +660,13 @@ class ConversationInfoActivity :
startActivity(intent) startActivity(intent)
} }
WorkInfo.State.FAILED -> { WorkInfo.State.FAILED -> {
Toast.makeText(
Toast.makeText(context, R.string.nc_last_moderator_leaving_room_warning, Toast.LENGTH_LONG).show() context,
R.string.nc_last_moderator_leaving_room_warning,
Toast.LENGTH_LONG
).show()
} }
else -> { else -> {
} }
} }
} }

View File

@ -53,13 +53,13 @@ class LeaveConversationWorker(context: Context, workerParams: WorkerParameters)
val apiVersion = getConversationApiVersion(currentUser, intArrayOf(ApiUtils.API_V4, 1)) val apiVersion = getConversationApiVersion(currentUser, intArrayOf(ApiUtils.API_V4, 1))
ncApi.removeSelfFromRoom( ncApi.removeSelfFromRoom(
credentials, getUrlForParticipantsSelf(apiVersion, currentUser.baseUrl, conversationToken) credentials,
getUrlForParticipantsSelf(apiVersion, currentUser.baseUrl, conversationToken)
) )
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe(object : Observer<GenericOverall?> { .subscribe(object : Observer<GenericOverall?> {
override fun onSubscribe(d: Disposable) { override fun onSubscribe(d: Disposable) {
} }
override fun onNext(p0: GenericOverall) { override fun onNext(p0: GenericOverall) {