Removes warnings

This commit is contained in:
Vitor Pamplona
2026-04-15 21:32:00 -04:00
parent e4e7d4816a
commit 3356059d50
2 changed files with 1 additions and 16 deletions
@@ -67,7 +67,7 @@ class MarmotGroupEventsEoseManager(
val groupFilters = sub.activeGroupFiltersSnapshot() val groupFilters = sub.activeGroupFiltersSnapshot()
// activeGroupFilters() returns one filter per group; match by tag content // activeGroupFilters() returns one filter per group; match by tag content
groupFilters.find { f -> groupFilters.find { f ->
f.tags?.any { it.value?.contains(groupId) == true } == true f.tags?.any { it.value.contains(groupId) } == true
} }
} ?: continue } ?: continue
@@ -1831,21 +1831,6 @@ class CallManagerTest {
assertIs<CallState.IncomingCall>(manager.state.value) assertIs<CallState.IncomingCall>(manager.state.value)
} }
// ========================================================================
// Multi-Device: Second Logged-In Device Must Stop Ringing
// ========================================================================
// When the user is logged in on two phones and Alice calls them, both
// devices ring. When one picks up (or rejects), the other must stop
// ringing without disturbing the device that answered.
//
// Mechanism: acceptCall / rejectCall publish an extra gift wrap of the
// same signed answer/reject event addressed to the user's own pubkey,
// so a sibling device (subscribed to gift wraps for its own pubkey)
// observes the echo, detects a self-answer/self-reject in IncomingCall
// state and transitions to Ended(ANSWERED_ELSEWHERE / REJECTED).
private fun EphemeralGiftWrapEvent.recipientPubKey(): HexKey? = tags.firstOrNull { it.size >= 2 && it[0] == "p" }?.get(1)
@Test @Test
fun acceptCallPublishesAnswerWrappedForSelfSoSiblingDeviceCanStopRinging() = fun acceptCallPublishesAnswerWrappedForSelfSoSiblingDeviceCanStopRinging() =
runTest { runTest {