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

18 lines
351 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-07-11 15:46:57 +00:00
var currentAttachments: [Attachment]
2024-06-27 09:54:12 +00:00
2024-06-27 11:39:41 +00:00
var replyText: String
2024-06-21 10:32:16 +00:00
}
// MARK: Init
extension ConversationState {
init() {
2024-06-24 10:44:55 +00:00
currentMessages = []
2024-07-11 15:46:57 +00:00
currentAttachments = []
2024-06-27 11:39:41 +00:00
replyText = ""
2024-06-21 10:32:16 +00:00
}
}