delete user strikethrough
This commit is contained in:
		
							parent
							
								
									3e1811fa51
								
							
						
					
					
						commit
						c9bfab0b14
					
				@ -801,11 +801,20 @@ private struct ChatRowView: View {
 | 
				
			|||||||
            VStack(alignment: .leading, spacing: 4) {
 | 
					            VStack(alignment: .leading, spacing: 4) {
 | 
				
			||||||
                if let officialName = officialFullName {
 | 
					                if let officialName = officialFullName {
 | 
				
			||||||
                    HStack(spacing: 6) {
 | 
					                    HStack(spacing: 6) {
 | 
				
			||||||
                        Text(officialName)
 | 
					                        if #available(iOS 16.0, *) {
 | 
				
			||||||
                            .fontWeight(.semibold)
 | 
					                            Text(officialName)
 | 
				
			||||||
                            .foregroundColor(.primary)
 | 
					                                .fontWeight(.semibold)
 | 
				
			||||||
                            .lineLimit(1)
 | 
					                                .foregroundColor(.primary)
 | 
				
			||||||
                            .truncationMode(.tail)
 | 
					                                .lineLimit(1)
 | 
				
			||||||
 | 
					                                .truncationMode(.tail)
 | 
				
			||||||
 | 
					                                .strikethrough(isDeletedUser, color: Color.secondary)
 | 
				
			||||||
 | 
					                        } else {
 | 
				
			||||||
 | 
					                            Text(officialName)
 | 
				
			||||||
 | 
					                                .fontWeight(.semibold)
 | 
				
			||||||
 | 
					                                .foregroundColor(.primary)
 | 
				
			||||||
 | 
					                                .lineLimit(1)
 | 
				
			||||||
 | 
					                                .truncationMode(.tail)
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        Image(systemName: "checkmark.seal.fill")
 | 
					                        Image(systemName: "checkmark.seal.fill")
 | 
				
			||||||
                            .foregroundColor(Color.accentColor)
 | 
					                            .foregroundColor(Color.accentColor)
 | 
				
			||||||
@ -820,11 +829,20 @@ private struct ChatRowView: View {
 | 
				
			|||||||
//                            .truncationMode(.tail)
 | 
					//                            .truncationMode(.tail)
 | 
				
			||||||
//                    }
 | 
					//                    }
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    Text(title)
 | 
					                    if #available(iOS 16.0, *) {
 | 
				
			||||||
                        .fontWeight(chat.unreadCount > 0 ? .semibold : .regular)
 | 
					                        Text(title)
 | 
				
			||||||
                        .foregroundColor(.primary)
 | 
					                            .fontWeight(chat.unreadCount > 0 ? .semibold : .regular)
 | 
				
			||||||
                        .lineLimit(1)
 | 
					                            .foregroundColor(.primary)
 | 
				
			||||||
                        .truncationMode(.tail)
 | 
					                            .lineLimit(1)
 | 
				
			||||||
 | 
					                            .truncationMode(.tail)
 | 
				
			||||||
 | 
					                            .strikethrough(isDeletedUser, color: Color.secondary)
 | 
				
			||||||
 | 
					                    } else {
 | 
				
			||||||
 | 
					                        Text(title)
 | 
				
			||||||
 | 
					                            .fontWeight(chat.unreadCount > 0 ? .semibold : .regular)
 | 
				
			||||||
 | 
					                            .foregroundColor(.primary)
 | 
				
			||||||
 | 
					                            .lineLimit(1)
 | 
				
			||||||
 | 
					                            .truncationMode(.tail)
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                Text(messagePreview)
 | 
					                Text(messagePreview)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user