Fix moar ktlint issues
This commit is contained in:
parent
a831f05f6e
commit
5d086ad82d
528 changed files with 146 additions and 629 deletions
|
|
@ -29,7 +29,6 @@ class RegisterUnifiedPushUseCase @Inject constructor(
|
|||
private val pusherSubscriber: PusherSubscriber,
|
||||
private val unifiedPushStore: UnifiedPushStore,
|
||||
) {
|
||||
|
||||
sealed interface RegisterUnifiedPushResult {
|
||||
data object Success : RegisterUnifiedPushResult
|
||||
data object NeedToAskUserForDistributor : RegisterUnifiedPushResult
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class UnifiedPushGatewayResolver @Inject constructor(
|
|||
suspend fun getGateway(endpoint: String): String? {
|
||||
val gateway = UnifiedPushConfig.default_push_gateway_http_url
|
||||
val url = URL(endpoint)
|
||||
val port = if (url.port != -1) { ":${url.port}" } else { "" }
|
||||
val port = if (url.port != -1) ":${url.port}" else ""
|
||||
val customBase = "${url.protocol}://${url.host}$port"
|
||||
val customUrl = "$customBase/_matrix/push/v1/notify"
|
||||
Timber.i("Testing $customUrl")
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@ class UnregisterUnifiedPushUseCase @Inject constructor(
|
|||
private val unifiedPushStore: UnifiedPushStore,
|
||||
// private val unifiedPushGatewayResolver: UnifiedPushGatewayResolver,
|
||||
) {
|
||||
|
||||
suspend fun execute(clientSecret: String /*pushersManager: PushersManager?*/) {
|
||||
suspend fun execute(clientSecret: String) {
|
||||
// val mode = BackgroundSyncMode.FDROID_BACKGROUND_SYNC_MODE_FOR_REALTIME
|
||||
// pushDataStore.setFdroidSyncBackgroundMode(mode)
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue