Various fixes (#437)

* Fix information leaking on RoomSummaryDetails logging

* Prevent crashes when force quitting the application

* Cleanup crash detected alert presentation and exposed home screen view model actions

* Fixes #340 - Wait for logout confirmation before changing the app state

* Add changelogs

* Fix unit tests

* Add missing softLogout logout handling
This commit is contained in:
Stefan Ceriu
2023-01-11 15:10:26 +02:00
committed by GitHub
parent 02787d85f7
commit 9d80e79eca
11 changed files with 82 additions and 52 deletions

View File

@@ -35,7 +35,7 @@ class HomeScreenViewModelTests: XCTestCase {
var selectedRoomId = ""
viewModel.callback = { result in
switch result {
case .selectRoom(let roomId):
case .presentRoom(let roomId):
correctResult = true
selectedRoomId = roomId
default:
@@ -53,8 +53,8 @@ class HomeScreenViewModelTests: XCTestCase {
var correctResult = false
viewModel.callback = { result in
switch result {
case .userMenu(let action):
correctResult = action == .settings
case .presentSettingsScreen:
correctResult = true
default:
break
}