Merge pull request #833 from mpretty-cyro/fix/incorrect-status-query
Fix recipientState query bug
This commit is contained in:
commit
39b005172b
|
@ -527,11 +527,11 @@ public extension SessionThreadViewModel {
|
||||||
WHERE (
|
WHERE (
|
||||||
\(recipientState[.interactionId]) = \(interaction[.id]) AND
|
\(recipientState[.interactionId]) = \(interaction[.id]) AND
|
||||||
-- Ignore 'skipped' states
|
-- Ignore 'skipped' states
|
||||||
\(SQL("\(recipientState[.state]) = \(RecipientState.State.sending)"))
|
\(SQL("\(recipientState[.state]) != \(RecipientState.State.skipped)"))
|
||||||
)
|
)
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
), 0) AS \(ViewModel.interactionStateKey),
|
), \(SQL("\(RecipientState.State.sending)"))) AS \(ViewModel.interactionStateKey),
|
||||||
|
|
||||||
(\(readReceiptTableLiteral).\(readReceiptReadTimestampMsColumnLiteral) IS NOT NULL) AS \(ViewModel.interactionHasAtLeastOneReadReceiptKey),
|
(\(readReceiptTableLiteral).\(readReceiptReadTimestampMsColumnLiteral) IS NOT NULL) AS \(ViewModel.interactionHasAtLeastOneReadReceiptKey),
|
||||||
(\(linkPreview[.url]) IS NOT NULL) AS \(ViewModel.interactionIsOpenGroupInvitationKey),
|
(\(linkPreview[.url]) IS NOT NULL) AS \(ViewModel.interactionIsOpenGroupInvitationKey),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue