This commit is contained in:
Benoit Marty 2024-05-16 11:07:31 +02:00
parent 2e7e5633f5
commit f886cd00a1

View file

@ -470,10 +470,11 @@ class MessagesPresenterTest {
val initialState = awaitItem() val initialState = awaitItem()
initialState.eventSink.invoke( initialState.eventSink.invoke(
MessagesEvents.HandleAction( MessagesEvents.HandleAction(
TimelineItemAction.Redact, aMessageEvent( action = TimelineItemAction.Redact,
transactionId = A_TRANSACTION_ID, event = aMessageEvent(
sendState = LocalEventSendState.SendingFailed("Failed to send message") transactionId = A_TRANSACTION_ID,
) sendState = LocalEventSendState.SendingFailed("Failed to send message")
)
) )
) )
assertThat(matrixRoom.cancelSendCount).isEqualTo(1) assertThat(matrixRoom.cancelSendCount).isEqualTo(1)