From af1969603c9527f3e40b83311fdcaf868166a175 Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Sun, 27 Oct 2024 17:04:14 +0100 Subject: [PATCH] ktlintFormat Signed-off-by: sowjanyakch --- .../talk/conversationinfo/ConversationInfoActivity.kt | 8 +++++--- .../com/nextcloud/talk/jobs/LeaveConversationWorker.kt | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt index f7eab369d5..2f7daa8bb0 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt @@ -657,11 +657,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 -> { - } } } diff --git a/app/src/main/java/com/nextcloud/talk/jobs/LeaveConversationWorker.kt b/app/src/main/java/com/nextcloud/talk/jobs/LeaveConversationWorker.kt index 7e9f63b5e7..3c946b254e 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/LeaveConversationWorker.kt +++ b/app/src/main/java/com/nextcloud/talk/jobs/LeaveConversationWorker.kt @@ -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 { override fun onSubscribe(d: Disposable) { - } override fun onNext(p0: GenericOverall) {