Fix formatting

This commit is contained in:
ganfra 2026-04-16 16:18:53 +02:00
parent 6b933b6506
commit fbfeeae084
14 changed files with 31 additions and 52 deletions

View file

@ -71,4 +71,3 @@ private fun RustLiveLocationShare.into(): LiveLocationShare {
endTimestamp = (startTs + timeout).toLong()
)
}

View file

@ -52,5 +52,4 @@ internal fun Flow<List<LiveLocationShare>>.timedByExpiry(
send(liveShares)
reschedule(liveShares)
}
}

View file

@ -12,9 +12,8 @@ import com.google.common.truth.Truth.assertThat
import io.element.android.libraries.matrix.api.core.UserId
import io.element.android.libraries.matrix.api.room.location.LiveLocationShare
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.emptyFlow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.emptyFlow
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.test.advanceTimeBy
import kotlinx.coroutines.test.runTest
@ -22,7 +21,6 @@ import org.junit.Test
@OptIn(ExperimentalCoroutinesApi::class)
class TimedLiveLocationSharesFlowTest {
@Test
fun `it keeps emitting shares for subsequent expiries without upstream changes`() = runTest {
val shares = listOf(