diff --git a/Session/Home/GlobalSearch/GlobalSearchScreen.swift b/Session/Home/GlobalSearch/GlobalSearchScreen.swift index 4e4382457..d10aa399e 100644 --- a/Session/Home/GlobalSearch/GlobalSearchScreen.swift +++ b/Session/Home/GlobalSearch/GlobalSearchScreen.swift @@ -340,10 +340,21 @@ struct SearchResultCell: View { alignment: .leading, spacing: Values.verySmallSpacing ) { - Text(viewModel.displayName) - .bold() - .font(.system(size: Values.mediumFontSize)) - .foregroundColor(themeColor: .textPrimary) + HStack { + Text(viewModel.displayName) + .bold() + .font(.system(size: Values.mediumFontSize)) + .foregroundColor(themeColor: .textPrimary) + + Spacer() + + if searchSection == .messages { + Text(viewModel.lastInteractionDate.formattedForDisplay) + .font(.system(size: Values.smallFontSize)) + .foregroundColor(themeColor: .textSecondary) + .opacity(Values.lowOpacity) + } + } if let textColor: UIColor = ThemeManager.currentTheme.color(for: .textPrimary) { let maybeSnippet: NSAttributedString? = { @@ -396,7 +407,7 @@ struct SearchResultCell: View { Spacer(minLength: 0) } - .padding(.horizontal, Values.mediumSpacing) + .padding(.leading, Values.mediumSpacing) } }