Removes warnings
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
-15
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user