Space panel overflow journeys & rough edge warnings #5227

- space menu additions according to new requirements
This commit is contained in:
Gil Eluard
2021-12-10 18:01:56 +01:00
parent 5b16c541fa
commit 2c7f8709fd
13 changed files with 91 additions and 4 deletions
@@ -24,6 +24,9 @@ class SpaceMenuPresenter: NSObject {
enum Actions {
case exploreRooms
case exploreMembers
case addRoom
case addSpace
case settings
}
// MARK: - Properties
@@ -108,6 +111,12 @@ extension SpaceMenuPresenter: SpaceMenuModelViewModelCoordinatorDelegate {
self.delegate?.spaceMenuPresenter(self, didCompleteWith: .exploreMembers, forSpaceWithId: self.spaceId, with: self.session)
case .exploreSpaceRooms:
self.delegate?.spaceMenuPresenter(self, didCompleteWith: .exploreRooms, forSpaceWithId: self.spaceId, with: self.session)
case .addRoom:
self.delegate?.spaceMenuPresenter(self, didCompleteWith: .addRoom, forSpaceWithId: self.spaceId, with: self.session)
case .addSpace:
self.delegate?.spaceMenuPresenter(self, didCompleteWith: .addSpace, forSpaceWithId: self.spaceId, with: self.session)
case .settings:
self.delegate?.spaceMenuPresenter(self, didCompleteWith: .settings, forSpaceWithId: self.spaceId, with: self.session)
default:
MXLog.error("[SpaceMenuPresenter] spaceListViewModel didSelectItem: invalid action \(action)")
}