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

13 lines
228 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-21 10:32:16 +00:00
}
// MARK: Init
extension ConversationState {
init() {
2024-06-24 10:44:55 +00:00
currentMessages = []
2024-06-21 10:32:16 +00:00
}
}