Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Oct 7, 2021
1 parent 4e9e0fd commit 91f35f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class SummaryGroupMessageCreator @Inject constructor(
simpleNotifications.forEach { style.addLine(it.summaryLine) }
}

val summaryIsNoisy = roomNotifications.any { it.shouldBing }
|| invitationNotifications.any { it.isNoisy }
|| simpleNotifications.any { it.isNoisy }
val summaryIsNoisy = roomNotifications.any { it.shouldBing } ||
invitationNotifications.any { it.isNoisy } ||
simpleNotifications.any { it.isNoisy }

val messageCount = roomNotifications.fold(initial = 0) { acc, current -> acc + current.messageCount }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import android.app.Notification
import im.vector.app.test.fakes.FakeNotifiableEventProcessor
import im.vector.app.test.fakes.FakeNotificationDisplayer
import im.vector.app.test.fakes.FakeNotificationFactory
import im.vector.app.test.fakes.FakeVectorPreferences
import io.mockk.mockk
import org.junit.Test

Expand Down

0 comments on commit 91f35f2

Please sign in to comment.