mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-26 09:44:55 +00:00
core: check item status is not already SndRcvd before updating to SndSent (#2708)
This commit is contained in:
@@ -843,7 +843,7 @@ msgDeliveryStatusT = eitherToMaybe . parseAll statusP . encodeUtf8
|
||||
"snd_rcvd" -> AMDS SMDSnd . MDSSndRcvd <$> (A.space *> strP)
|
||||
"snd_read" -> pure $ AMDS SMDSnd MDSSndRead
|
||||
_ -> fail "bad AMsgDeliveryStatus"
|
||||
|
||||
|
||||
msgDeliveryStatusT' :: forall d. MsgDirectionI d => Text -> Maybe (MsgDeliveryStatus d)
|
||||
msgDeliveryStatusT' s =
|
||||
msgDeliveryStatusT s >>= \(AMDS d st) ->
|
||||
|
||||
Reference in New Issue
Block a user