mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
Expand all sections on the view source screen by default. (#2203)
This commit is contained in:
@@ -228,7 +228,7 @@ class RoomScreenInteractionHandler {
|
||||
actionsSubject.send(.displayMessageForwarding(itemID: itemID))
|
||||
case .viewSource:
|
||||
let debugInfo = timelineController.debugInfo(for: eventTimelineItem.id)
|
||||
MXLog.info(debugInfo)
|
||||
MXLog.info("Showing debug info for \(eventTimelineItem.id)")
|
||||
actionsSubject.send(.showDebugInfo(debugInfo))
|
||||
case .retryDecryption(let sessionID):
|
||||
Task {
|
||||
|
||||
@@ -25,7 +25,7 @@ struct TimelineItemDebugView: View {
|
||||
NavigationStack {
|
||||
ScrollView {
|
||||
VStack(spacing: 8) {
|
||||
TimelineItemInfoDisclosureGroup(title: "Model", text: info.model, isInitiallyExpanded: true)
|
||||
TimelineItemInfoDisclosureGroup(title: "Model", text: info.model)
|
||||
|
||||
if let originalJSONInfo = info.originalJSON {
|
||||
TimelineItemInfoDisclosureGroup(title: "Original JSON", text: originalJSONInfo)
|
||||
@@ -58,17 +58,11 @@ struct TimelineItemDebugView: View {
|
||||
// MARK: - Private
|
||||
|
||||
private struct TimelineItemInfoDisclosureGroup: View {
|
||||
@State private var isExpanded: Bool
|
||||
@State private var isExpanded = true
|
||||
|
||||
let title: String
|
||||
let text: String
|
||||
|
||||
init(title: String, text: String, isInitiallyExpanded: Bool = false) {
|
||||
self.title = title
|
||||
self.text = text
|
||||
isExpanded = isInitiallyExpanded
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0.0) {
|
||||
DisclosureGroup(title, isExpanded: $isExpanded) {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:09c919e6b5a30d8c37b085045e6470263968a1a666e396e517a058718c0bcc9d
|
||||
size 112019
|
||||
oid sha256:3a809edfdea583bd03200ba58537a45633e6bd473477fb1689f064e64d66ed77
|
||||
size 120613
|
||||
|
||||
Reference in New Issue
Block a user