Created
November 17, 2023 11:42
-
-
Save exyte-agency/843324118137fb5777dfe229a9f5b802 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Message: Identifiable, Hashable { | |
public enum Status: Equatable, Hashable { | |
case sending | |
case sent | |
case read | |
case error(DraftMessage) | |
... | |
} | |
public var id: String | |
public var user: User | |
public var status: Status? | |
public var createdAt: Date | |
public var text: String | |
public var attachments: [Attachment] | |
public var recording: Recording? | |
public var replyMessage: ReplyMessage? | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment