Provide the room context as an environment object too, prevent reply … (#2804)

This commit is contained in:
Stefan Ceriu 2024-05-08 00:51:10 +03:00 committed by GitHub
parent 37001cb711
commit 8c22d080e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@ struct RoomScreen: View {
}
.padding(.top, 8)
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
.environmentObject(context)
.environment(\.roomContext, context)
}
.navigationTitle(L10n.screenRoomTitle) // Hidden but used for back button text.