another.im-ios/ConversationsClassic/AppCore/State/ConversationState.swift

19 lines
361 B
Swift
Raw Normal View History

2024-06-21 10:32:16 +00:00
struct ConversationState: Stateable {
var currentChat: Chat?
2024-06-26 06:51:56 +00:00
var currentRoster: Roster?
2024-06-24 10:44:55 +00:00
var currentMessages: [Message]
2024-06-27 09:54:12 +00:00
2024-06-27 11:39:41 +00:00
var replyText: String
2024-08-07 22:27:47 +00:00
var archivedMessagesRequested: Bool
2024-06-21 10:32:16 +00:00
}
// MARK: Init
extension ConversationState {
init() {
2024-06-24 10:44:55 +00:00
currentMessages = []
2024-06-27 11:39:41 +00:00
replyText = ""
2024-08-07 22:27:47 +00:00
archivedMessagesRequested = false
2024-06-21 10:32:16 +00:00
}
}