Browse Source

Update ChatListCellView

Sergey 2 years ago
parent
commit
0e0e13c159
1 changed files with 3 additions and 7 deletions
  1. 3 7
      Chat/UI/ChatList/ChatListCellView.swift

+ 3 - 7
Chat/UI/ChatList/ChatListCellView.swift

@@ -12,7 +12,9 @@ struct ChatListCellView: View {
 	let jid: String
 
 	var body: some View {
-		ZStack {
+		NavigationLink {
+			ChatView(viewModel: ChatViewModel(with: jid))
+		} label: {
 			HStack {
 				Image(systemName: "person.crop.circle")
 					.resizable()
@@ -23,12 +25,6 @@ struct ChatListCellView: View {
 			}
 			.foregroundColor(.primary)
 			.frame(height: 30)
-			NavigationLink {
-				ChatView(viewModel: ChatViewModel(with: jid))
-			} label: {
-				EmptyView()
-			}
-			.opacity(0.0)
 		}
 	}
 }