mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Accept and decline invites (#806)
* Add accept/decline invite api * Fix isDirect logic * Add logic for accepting/decling invites * Add error handling structure * Add decline alert * Add navigation to joined room * Add generic error * Add changelog.d file * Cleanup * Fix failing UTs * Add UTs * Add UI tests * Cleanup * Update ref screenshots * Refactor invitesScreen state * Improve switch handling in UserSessionFlowCoordinator * Fix build error
This commit is contained in:
@@ -65,6 +65,7 @@ class MockClientProxy: ClientProxyProtocol {
|
||||
return RoomProxyMock(with: .init(displayName: "Empty room"))
|
||||
case .filled(let details), .invalidated(let details):
|
||||
let room = RoomProxyMock(with: .init(displayName: details.name))
|
||||
room.acceptInvitationReturnValue = .success(())
|
||||
room.inviterReturnValue = roomInviter
|
||||
return room
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user