From f149368ac26e6fda9e0921712e4e3393a35df984 Mon Sep 17 00:00:00 2001 From: James Carucci Date: Tue, 9 Aug 2022 10:05:07 -0700 Subject: [PATCH] Show text if there are no DMs Signed-off-by: William Casarin --- damus/Views/DMChatView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/damus/Views/DMChatView.swift b/damus/Views/DMChatView.swift index 53804665..9c81e57b 100644 --- a/damus/Views/DMChatView.swift +++ b/damus/Views/DMChatView.swift @@ -132,6 +132,12 @@ struct DMChatView: View { Footer } + Text("Send a message to start the conversation...") + .lineLimit(nil) + .multilineTextAlignment(.center) + .padding(.horizontal, 40) + .opacity(((dms.events.count == 0) ? 1.0 : 0.0)) + .foregroundColor(.gray) } .navigationTitle("DM") .toolbar { Header }