mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-26 23:21:00 +00:00
core: group snd status (#2763)
* core: group snd status * schema, implementation * refactor direct, tests * configure, tests * item info * refactor * refactor * remove do * rename * remove receipts on events * refactor * refactor * refactor * refactor * tests * rename tests * aggregates * fix name * refactor --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
1 parent
26a233ab1a
commit
ae9b83515c
19 files changed
+635
-184
No files matched your search
@@ -465,12 +465,21 @@ localTs tz ts = do
|
||||
viewChatItemStatusUpdated :: AChatItem -> CurrentTime -> TimeZone -> Bool -> Bool -> [StyledString]
|
||||
viewChatItemStatusUpdated (AChatItem _ _ chat item@ChatItem {meta = CIMeta {itemStatus}}) ts tz testView showReceipts =
|
||||
case itemStatus of
|
||||
CISSndRcvd rcptStatus ->
|
||||
CISSndRcvd rcptStatus SSPPartial ->
|
||||
if testView && showReceipts
|
||||
then prependFirst (viewDeliveryReceiptPartial rcptStatus <> " ") $ viewChatItem chat item False ts tz
|
||||
else []
|
||||
CISSndRcvd rcptStatus SSPComplete ->
|
||||
if testView && showReceipts
|
||||
then prependFirst (viewDeliveryReceipt rcptStatus <> " ") $ viewChatItem chat item False ts tz
|
||||
else []
|
||||
_ -> []
|
||||
|
||||
viewDeliveryReceiptPartial :: MsgReceiptStatus -> StyledString
|
||||
viewDeliveryReceiptPartial = \case
|
||||
MROk -> "%"
|
||||
MRBadMsgHash -> ttyError' "%!"
|
||||
|
||||
viewDeliveryReceipt :: MsgReceiptStatus -> StyledString
|
||||
viewDeliveryReceipt = \case
|
||||
MROk -> "⩗"
|
||||
|
||||
Reference in new issue
Block a user