Left pane preview/timestamp: Further refine logic
This commit is contained in:
parent
bcd4f6407f
commit
8d5e832ed6
2 changed files with 9 additions and 9 deletions
|
@ -2759,7 +2759,7 @@ async function getLastConversationActivity(
|
|||
const row = await db.get(
|
||||
`SELECT * FROM messages WHERE
|
||||
conversationId = $conversationId AND
|
||||
(type IS NULL OR type NOT IN ('profile-change', 'verified-change', 'message-history-unsynced')) AND
|
||||
(type IS NULL OR type NOT IN ('profile-change', 'verified-change', 'message-history-unsynced', 'keychange')) AND
|
||||
(json_extract(json, '$.expirationTimerUpdate.fromSync') IS NULL OR json_extract(json, '$.expirationTimerUpdate.fromSync') != 1)
|
||||
ORDER BY received_at DESC
|
||||
LIMIT 1;`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue