add chetchik
This commit is contained in:
parent
da5745cad8
commit
9172a0b353
@ -14,7 +14,7 @@ final class PrivateChatViewModel: ObservableObject {
|
|||||||
private let chatId: String
|
private let chatId: String
|
||||||
private let currentUserId: String?
|
private let currentUserId: String?
|
||||||
private let pageSize: Int
|
private let pageSize: Int
|
||||||
private let maxMessageLength: Int = 4096
|
let maxMessageLength: Int = 4096
|
||||||
private var didLoadInitially: Bool = false
|
private var didLoadInitially: Bool = false
|
||||||
private var messageObserver: NSObjectProtocol?
|
private var messageObserver: NSObjectProtocol?
|
||||||
|
|
||||||
|
|||||||
@ -632,6 +632,16 @@ struct PrivateChatView: View {
|
|||||||
}
|
}
|
||||||
.padding(.trailing, 12)
|
.padding(.trailing, 12)
|
||||||
.padding(.bottom, 10)
|
.padding(.bottom, 10)
|
||||||
|
|
||||||
|
// if draftText.count > 300 {
|
||||||
|
// Text("\(draftText.count) / \(viewModel.maxMessageLength)")
|
||||||
|
// .font(.caption2)
|
||||||
|
// .fontWeight(.medium)
|
||||||
|
// .foregroundColor(draftText.count > viewModel.maxMessageLength ? .red : .secondary)
|
||||||
|
// .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topTrailing)
|
||||||
|
// .padding(.trailing, 12)
|
||||||
|
// .padding(.top, 4)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
.frame(minHeight: 40, alignment: .bottom)
|
.frame(minHeight: 40, alignment: .bottom)
|
||||||
.background(Color(.secondarySystemBackground))
|
.background(Color(.secondarySystemBackground))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user