fix outdated banner for 1-1s

pull/731/head
Ryan ZHAO 7 months ago
parent d492290303
commit bf3fdad856

@ -953,11 +953,11 @@ public extension SessionThreadViewModel {
SELECT \(contactProfile[.id]) SELECT \(contactProfile[.id])
FROM \(contactProfile.self) FROM \(contactProfile.self)
JOIN \(contact.self) ON \(contactProfile[.id]) = \(contact[.id]) JOIN \(contact.self) ON \(contactProfile[.id]) = \(contact[.id])
JOIN ( JOIN \(groupMember.self) ON (
SELECT \(groupMember[.profileId]) \(groupMember[.groupId]) = \(threadId) AND
FROM \(GroupMember.self) \(groupMember[.profileId]) = \(contactProfile[.id]) OR
WHERE \(SQL("\(groupMember[.groupId]) = \(threadId)")) \(contact[.id]) = \(threadId)
) )
WHERE \(contact[.lastKnownClientVersion]) = \(FeatureVersion.legacyDisappearingMessages) WHERE \(contact[.lastKnownClientVersion]) = \(FeatureVersion.legacyDisappearingMessages)
) AS \(ViewModel.Columns.outdatedMemberId), ) AS \(ViewModel.Columns.outdatedMemberId),
( (

Loading…
Cancel
Save