chatstab patch

This commit is contained in:
cheykrym 2025-10-08 06:27:10 +03:00
parent ea927d1e78
commit bef74e4ebd

View File

@ -603,6 +603,7 @@ private struct SearchResultPlaceholderView: View {
private struct ChatRowView: View {
let chat: PrivateChatListItem
let currentUserId: String?
let messageLimitLine: Int = 1
private var title: String {
switch chat.chatType {
@ -848,7 +849,7 @@ private struct ChatRowView: View {
Text(messagePreview)
.font(.subheadline)
.foregroundColor(subtitleColor)
.lineLimit(2)
.lineLimit(messageLimitLine)
.truncationMode(.tail)
}
.frame(maxWidth: .infinity, alignment: .leading)