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()
initialState.eventSink.invoke(
MessagesEvents.HandleAction(
TimelineItemAction.Redact, aMessageEvent(
transactionId = A_TRANSACTION_ID,
sendState = LocalEventSendState.SendingFailed("Failed to send message")
)
action = TimelineItemAction.Redact,
event = aMessageEvent(
transactionId = A_TRANSACTION_ID,
sendState = LocalEventSendState.SendingFailed("Failed to send message")
)
)
)
assertThat(matrixRoom.cancelSendCount).isEqualTo(1)