Use the new notification sound. (#4572)

* Use the new notification sound.

* Add a banner informing the user of the new notification sound.
This commit is contained in:
Doug
2025-10-03 21:09:50 +01:00
committed by GitHub
parent a226c99492
commit 7e7cf1587f
18 changed files with 133 additions and 2 deletions
@@ -362,6 +362,19 @@ class HomeScreenViewModelTests: XCTestCase {
try await deferredAction.fulfill()
}
func testNewSoundBanner() {
appSettings.hasSeenNewSoundBanner = false
setupViewModel()
XCTAssertTrue(context.viewState.shouldShowBanner)
XCTAssertTrue(context.viewState.shouldShowNewSoundBanner)
context.send(viewAction: .dismissNewSoundBanner)
XCTAssertFalse(context.viewState.shouldShowBanner)
XCTAssertFalse(context.viewState.shouldShowNewSoundBanner)
XCTAssertTrue(appSettings.hasSeenNewSoundBanner)
}
// MARK: - Helpers
enum InviteType { case rooms, spaces }