mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix moar ktlint issues
This commit is contained in:
committed by
Benoit Marty
parent
5d086ad82d
commit
d01c70a4fd
+2
-2
@@ -84,7 +84,7 @@ class FakeEncryptionService : EncryptionService {
|
||||
}
|
||||
|
||||
override suspend fun resetRecoveryKey(): Result<String> = simulateLongTask {
|
||||
return Result.success(fakeRecoveryKey)
|
||||
return Result.success(FAKE_RECOVERY_KEY)
|
||||
}
|
||||
|
||||
override suspend fun enableRecovery(waitForBackupsToUpload: Boolean): Result<Unit> = simulateLongTask {
|
||||
@@ -108,6 +108,6 @@ class FakeEncryptionService : EncryptionService {
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val fakeRecoveryKey = "fake"
|
||||
const val FAKE_RECOVERY_KEY = "fake"
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -33,7 +33,7 @@ class FakeNotificationSettingsService(
|
||||
initialOneToOneDefaultMode: RoomNotificationMode = RoomNotificationMode.ALL_MESSAGES,
|
||||
initialEncryptedOneToOneDefaultMode: RoomNotificationMode = RoomNotificationMode.ALL_MESSAGES,
|
||||
) : NotificationSettingsService {
|
||||
private var _notificationSettingsStateFlow = MutableStateFlow(Unit)
|
||||
private val notificationSettingsStateFlow = MutableStateFlow(Unit)
|
||||
private var defaultGroupRoomNotificationMode: RoomNotificationMode = initialGroupDefaultMode
|
||||
private var defaultEncryptedGroupRoomNotificationMode: RoomNotificationMode = initialEncryptedGroupDefaultMode
|
||||
private var defaultOneToOneRoomNotificationMode: RoomNotificationMode = initialOneToOneDefaultMode
|
||||
@@ -49,7 +49,7 @@ class FakeNotificationSettingsService(
|
||||
private var setAtRoomError: Throwable? = null
|
||||
private var canHomeServerPushEncryptedEventsToDeviceResult = Result.success(true)
|
||||
override val notificationSettingsChangeFlow: SharedFlow<Unit>
|
||||
get() = _notificationSettingsStateFlow
|
||||
get() = notificationSettingsStateFlow
|
||||
|
||||
override suspend fun getRoomNotificationSettings(roomId: RoomId, isEncrypted: Boolean, isOneToOne: Boolean): Result<RoomNotificationSettings> {
|
||||
return Result.success(
|
||||
@@ -94,7 +94,7 @@ class FakeNotificationSettingsService(
|
||||
defaultGroupRoomNotificationMode = mode
|
||||
}
|
||||
}
|
||||
_notificationSettingsStateFlow.emit(Unit)
|
||||
notificationSettingsStateFlow.emit(Unit)
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ class FakeNotificationSettingsService(
|
||||
} else {
|
||||
roomNotificationModeIsDefault = false
|
||||
roomNotificationMode = mode
|
||||
_notificationSettingsStateFlow.emit(Unit)
|
||||
notificationSettingsStateFlow.emit(Unit)
|
||||
Result.success(Unit)
|
||||
}
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class FakeNotificationSettingsService(
|
||||
}
|
||||
roomNotificationModeIsDefault = true
|
||||
roomNotificationMode = defaultEncryptedGroupRoomNotificationMode
|
||||
_notificationSettingsStateFlow.emit(Unit)
|
||||
notificationSettingsStateFlow.emit(Unit)
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user