diff --git a/Session/Media Viewing & Editing/MessageInfoView.swift b/Session/Media Viewing & Editing/MessageInfoView.swift index bb29f4c07..3be87a5dc 100644 --- a/Session/Media Viewing & Editing/MessageInfoView.swift +++ b/Session/Media Viewing & Editing/MessageInfoView.swift @@ -209,7 +209,12 @@ struct MessageInfoView: View { } if isMessageFailed { - + let failureText: String = messageViewModel.mostRecentFailureText ?? "Message failed to send" + InfoBlock(title: "Error:") { + Text(failureText) + .font(.system(size: 16)) + .foregroundColor(.red) + } } InfoBlock(title: "From:") { @@ -267,20 +272,22 @@ struct MessageInfoView: View { ) // Actions - // ZStack { - // RoundedRectangle(cornerRadius: 8) - // VStack { - // ForEach( - // 0...(actions.count - 1), - // id: \.self - // ) { index in - // HStack { - // Image(uiImage: actions[index].icon!) - // Text(actions[index].title) - // } - // } - // } - // } + if !actions.isEmpty { + ZStack { + RoundedRectangle(cornerRadius: 8) + VStack { + ForEach( + 0...(actions.count - 1), + id: \.self + ) { index in + HStack { + Image(uiImage: actions[index].icon!) + Text(actions[index].title) + } + } + } + } + } } } }