Skip to content

Commit

Permalink
revert the if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Feb 28, 2024
1 parent 78b835c commit 98c23e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class StartServiceReceiver : BroadcastReceiver() {
}
is ShouldStartPersistentWebSocketServiceUseCase.Result.Success -> {
if (it.shouldStartPersistentWebSocketService) {
if (!PersistentWebSocketService.isServiceStarted) {
if (PersistentWebSocketService.isServiceStarted) {
appLogger.i("$TAG: PersistentWebsocketService already started, not starting again")

Check warning on line 62 in app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt

View check run for this annotation

Codecov / codecov/patch

app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt#L62

Added line #L62 was not covered by tests
} else {
appLogger.i("$TAG: Starting PersistentWebsocketService")

Check warning on line 64 in app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt

View check run for this annotation

Codecov / codecov/patch

app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt#L64

Added line #L64 was not covered by tests
Expand Down

0 comments on commit 98c23e3

Please sign in to comment.