Extend the room details screen hook (#6173)

* Allow Enterprise sections in room details

Signed-off-by: Daniel Anderson <daniel.anderson@toptal.com>

* Update the Enterprise submodule and strings

Signed-off-by: Daniel Anderson <daniel.anderson@toptal.com>

---------

Signed-off-by: Daniel Anderson <daniel.anderson@toptal.com>
This commit is contained in:
Danny
2026-09-28 12:11:23 -06:00
committed by GitHub
parent e51d869fdc
commit d74d53e4ee
8 changed files with 26 additions and 3 deletions
@@ -5,14 +5,19 @@
// Please see LICENSE files in the repository root for full details.
//
import Foundation
import SwiftUI
nonisolated protocol RoomDetailsScreenHookProtocol: Sendable {
@MainActor func update(_ viewState: RoomDetailsScreenViewState) -> RoomDetailsScreenViewState
@MainActor func additionalSections() -> AnyView?
}
struct DefaultRoomDetailsScreenHook: RoomDetailsScreenHookProtocol {
func update(_ viewState: RoomDetailsScreenViewState) -> RoomDetailsScreenViewState {
viewState
}
func additionalSections() -> AnyView? {
nil
}
}