From 8a69ca1ce060dac67ffd622880c9b208cce8f898 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 10 Aug 2023 11:27:06 +0300 Subject: [PATCH] Fix reply to media crash caused by missing room context (and implicitly image provider) on the new composer toolbar --- ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift | 1 + changelog.d/pr-1472.bugfix | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/pr-1472.bugfix diff --git a/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift b/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift index 48476b220d..f354e20731 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift @@ -33,6 +33,7 @@ struct RoomScreen: View { .padding(.top, 8) .padding(.bottom) .background(Color.compound.bgCanvasDefault.ignoresSafeArea()) + .environmentObject(context) } .navigationBarTitleDisplayMode(.inline) .toolbar { toolbar } diff --git a/changelog.d/pr-1472.bugfix b/changelog.d/pr-1472.bugfix new file mode 100644 index 0000000000..42b85102e7 --- /dev/null +++ b/changelog.d/pr-1472.bugfix @@ -0,0 +1 @@ +Fixed crash when trying to reply to media files \ No newline at end of file