mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
ios: refresh call invitations and report call on start and activation; core: restore calls on activation (#776)
This commit is contained in:
@@ -33,6 +33,7 @@ data Call = Call
|
||||
callState :: CallState,
|
||||
callTs :: UTCTime
|
||||
}
|
||||
deriving (Show)
|
||||
|
||||
isRcvInvitation :: Call -> Bool
|
||||
isRcvInvitation Call {callState} = case callState of
|
||||
@@ -88,7 +89,7 @@ data CallState
|
||||
peerCallSession :: WebRTCSession,
|
||||
sharedKey :: Maybe C.Key
|
||||
}
|
||||
deriving (Generic)
|
||||
deriving (Show, Generic)
|
||||
|
||||
-- database representation
|
||||
instance FromJSON CallState where
|
||||
|
||||
@@ -3693,6 +3693,7 @@ getCalls db User {userId} = do
|
||||
contact_id, shared_call_id, chat_item_id, call_state, call_ts
|
||||
FROM calls
|
||||
WHERE user_id = ?
|
||||
ORDER BY call_ts ASC
|
||||
|]
|
||||
(Only userId)
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user