style(ktlint): Fix formatting for ktlint check to succeed

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2025-07-09 20:28:23 +02:00
parent 2e5bcc174c
commit 669a528b14
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
5 changed files with 16 additions and 11 deletions

View File

@ -180,8 +180,8 @@ class ChatBlocksDaoTest {
scheduledForDeletion = java.lang.Boolean.FALSE
)
private fun createConversationEntity(accountId: Long, token: String, roomName: String): ConversationEntity {
return ConversationEntity(
private fun createConversationEntity(accountId: Long, token: String, roomName: String) =
ConversationEntity(
internalId = "$accountId@$token",
accountId = accountId,
token = token,
@ -229,5 +229,4 @@ class ChatBlocksDaoTest {
participantType = Participant.ParticipantType.DUMMY,
recordingConsentRequired = 1
)
}
}

View File

@ -23,8 +23,8 @@ class ShareUtilsIT {
assertEquals(TEST_DATE_IN_MILLIS, HttpUtils.parseDate("Mon, 09 Apr 2008 23:55:38 GMT")?.time)
}
private fun parseDate2(dateStr: String): Date {
return DateUtils.parseDate(
private fun parseDate2(dateStr: String): Date =
DateUtils.parseDate(
dateStr, Locale.US,
HttpUtils.httpDateFormatStr,
// RFC 822, updated by RFC 1123 with any TZ
@ -48,7 +48,6 @@ class ShareUtilsIT {
// RI bug 6641315 claims a cookie of this format was once served by www.yahoo.com
"EEE MMM d yyyy HH:mm:ss z"
)
}
companion object {
private const val TEST_DATE_IN_MILLIS = 1207778138000

View File

@ -24,7 +24,9 @@ import com.nextcloud.talk.jobs.GetFirebasePushTokenWorker
import java.util.concurrent.TimeUnit
@AutoInjector(NextcloudTalkApplication::class)
class ClosedInterfaceImpl : ClosedInterface, ProviderInstaller.ProviderInstallListener {
class ClosedInterfaceImpl :
ClosedInterface,
ProviderInstaller.ProviderInstallListener {
override val isGooglePlayServicesAvailable: Boolean = isGPlayServicesAvailable()

View File

@ -155,7 +155,9 @@ class WebViewLoginActivity : BaseActivity() {
val webauthnOptionsBuilder = WebauthnDialogOptions.builder().setShowSdkLogo(true).setAllowSkipPin(true)
webViewWebauthnBridge = WebViewWebauthnBridge.createInstanceForWebView(
this, binding.webview, webauthnOptionsBuilder
this,
binding.webview,
webauthnOptionsBuilder
)
CookieSyncManager.createInstance(this)
@ -430,7 +432,8 @@ class WebViewLoginActivity : BaseActivity() {
return null
}
}
return if (!TextUtils.isEmpty(loginData.serverUrl) && !TextUtils.isEmpty(loginData.username) &&
return if (!TextUtils.isEmpty(loginData.serverUrl) &&
!TextUtils.isEmpty(loginData.username) &&
!TextUtils.isEmpty(loginData.token)
) {
loginData

View File

@ -723,7 +723,8 @@ class ChatActivity :
) {
val retentionPeriod = retentionOfSIPRoom(spreedCapabilities)
val systemMessage = currentConversation?.lastMessage?.systemMessageType
if (retentionPeriod != 0 && (
if (retentionPeriod != 0 &&
(
systemMessage == ChatMessage.SystemMessageType.CALL_ENDED ||
systemMessage == ChatMessage.SystemMessageType.CALL_ENDED_EVERYONE
)
@ -740,7 +741,8 @@ class ChatActivity :
) {
val retentionPeriod = retentionOfInstantMeetingRoom(spreedCapabilities)
val systemMessage = currentConversation?.lastMessage?.systemMessageType
if (retentionPeriod != 0 && (
if (retentionPeriod != 0 &&
(
systemMessage == ChatMessage.SystemMessageType.CALL_ENDED ||
systemMessage == ChatMessage.SystemMessageType.CALL_ENDED_EVERYONE
)