mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fixes #1102 - Crashes when opening the invites screen
This commit is contained in:
committed by
Stefan Ceriu
parent
ede4ab095c
commit
f624add018
@@ -21,9 +21,9 @@ struct InvitesScreen: View {
|
||||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
if let rooms = context.viewState.invites, !rooms.isEmpty {
|
||||
if !context.viewState.invites.isEmpty {
|
||||
LazyVStack(spacing: 0) {
|
||||
ForEach(rooms, id: \.roomDetails.id) { invite in
|
||||
ForEach(context.viewState.invites) { invite in
|
||||
InvitesScreenCell(invite: invite,
|
||||
imageProvider: context.imageProvider,
|
||||
acceptAction: { context.send(viewAction: .accept(invite)) },
|
||||
|
||||
Reference in New Issue
Block a user