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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user