mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
9df91b6e74
commit
f6489eb10d
@ -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 -> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user