19 lines
361 B
Swift
19 lines
361 B
Swift
struct ConversationState: Stateable {
|
|
var currentChat: Chat?
|
|
var currentRoster: Roster?
|
|
var currentMessages: [Message]
|
|
|
|
var replyText: String
|
|
|
|
var archivedMessagesRequested: Bool
|
|
}
|
|
|
|
// MARK: Init
|
|
extension ConversationState {
|
|
init() {
|
|
currentMessages = []
|
|
replyText = ""
|
|
archivedMessagesRequested = false
|
|
}
|
|
}
|