Display voice message progress cursor if progress is greater than zero (#2077)

This commit is contained in:
Nicolas Mauri
2023-11-13 16:41:38 +01:00
committed by GitHub
parent bc46c48b2e
commit acd079199a
7 changed files with 14 additions and 16 deletions
@@ -285,7 +285,7 @@ class AudioPlayerStateTests: XCTestCase {
}
audioPlayerActionsSubject.send(.didStartPlaying)
try await deferredPlayingState.fulfill()
XCTAssertTrue(audioPlayerState.showProgressIndicator)
XCTAssertFalse(audioPlayerState.showProgressIndicator)
let deferred = deferFulfillment(audioPlayerState.$playbackState) { action in
switch action {
@@ -300,6 +300,6 @@ class AudioPlayerStateTests: XCTestCase {
try await deferred.fulfill()
XCTAssertEqual(audioPlayerState.playbackState, .error)
XCTAssertFalse(audioPlayerState.isPublishingProgress)
XCTAssertTrue(audioPlayerState.showProgressIndicator)
XCTAssertFalse(audioPlayerState.showProgressIndicator)
}
}