mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-14 07:10:19 +00:00
fix type
This commit is contained in:
+2
-2
@@ -2756,11 +2756,11 @@ Failed:
|
||||
|
||||
Error:
|
||||
- type: "error"
|
||||
- : string
|
||||
- sendError: string
|
||||
|
||||
Attempts:
|
||||
- type: "attempts"
|
||||
- : int
|
||||
- sendAttempts: int
|
||||
|
||||
|
||||
---
|
||||
|
||||
@@ -3020,12 +3020,12 @@ export namespace KeySendStatus {
|
||||
|
||||
export interface Error extends Interface {
|
||||
type: "error"
|
||||
: string
|
||||
sendError: string
|
||||
}
|
||||
|
||||
export interface Attempts extends Interface {
|
||||
type: "attempts"
|
||||
: number // int
|
||||
sendAttempts: number // int
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2102,11 +2102,11 @@ class KeySendStatus_failed(TypedDict):
|
||||
|
||||
class KeySendStatus_error(TypedDict):
|
||||
type: Literal["error"]
|
||||
: str
|
||||
sendError: str
|
||||
|
||||
class KeySendStatus_attempts(TypedDict):
|
||||
type: Literal["attempts"]
|
||||
: int # int
|
||||
sendAttempts: int # int
|
||||
|
||||
KeySendStatus = (
|
||||
KeySendStatus_sent
|
||||
|
||||
@@ -1150,7 +1150,11 @@ data ReceivedGroupInvitation = ReceivedGroupInvitation
|
||||
|
||||
type GroupMemberId = Int64
|
||||
|
||||
data KeySendStatus = KSSent | KSFailed | KSError Text | KSAttempts Int
|
||||
data KeySendStatus
|
||||
= KSSent
|
||||
| KSFailed
|
||||
| KSError {sendError :: Text}
|
||||
| KSAttempts {sendAttempts :: Int}
|
||||
deriving (Eq, Show)
|
||||
|
||||
-- memberProfile's profileId is COALESCE(member_profile_id, contact_profile_id), member_profile_id is non null
|
||||
|
||||
Reference in New Issue
Block a user