fixing it so if no messages, still see metadata for a user

This commit is contained in:
talksik
2021-12-22 17:45:45 -08:00
parent cce8655d4f
commit 33a4241780
@@ -25,7 +25,7 @@ struct CircleFooterView: View {
Spacer() Spacer()
HStack { HStack {
if self.selectedFriend != nil && !self.convoRelativeTime.isEmpty && self.myTurn != nil { if self.selectedFriend != nil {
// friend avatar // friend avatar
Image(self.selectedFriend!.avatar ?? "") Image(self.selectedFriend!.avatar ?? "")
.resizable() .resizable()
@@ -34,19 +34,27 @@ struct CircleFooterView: View {
.frame(width: 40, height: 40) .frame(width: 40, height: 40)
.clipShape(Circle()) .clipShape(Circle())
.padding(5) .padding(5)
}
// meta data of convo
VStack (alignment: .leading) {
// meta data of convo
VStack (alignment: .leading) {
if self.selectedFriend != nil {
Text(self.selectedFriend!.nickname ?? "") Text(self.selectedFriend!.nickname ?? "")
.font(.footnote) .font(.footnote)
.foregroundColor(NirvanaColor.light) .foregroundColor(NirvanaColor.light)
}
if !self.convoRelativeTime.isEmpty && self.myTurn != nil {
Text(self.convoRelativeTime) Text(self.convoRelativeTime)
.font(.caption) .font(.caption)
.foregroundColor(.gray) .foregroundColor(.gray)
} }
}
Spacer() Spacer()
if self.selectedFriend != nil {
// call button // call button
Button { Button {
print("calling user now") print("calling user now")