mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix messages_preview index
This commit is contained in:
@@ -2541,10 +2541,8 @@ function getLastConversationActivity({
|
||||
}
|
||||
function getLastConversationPreview({
|
||||
conversationId,
|
||||
ourUuid,
|
||||
}: {
|
||||
conversationId: string;
|
||||
ourUuid: UUIDStringType;
|
||||
}): MessageType | undefined {
|
||||
const db = getInstance();
|
||||
const row = prepare(
|
||||
@@ -2565,7 +2563,6 @@ function getLastConversationPreview({
|
||||
`
|
||||
).get({
|
||||
conversationId,
|
||||
ourUuid,
|
||||
now: Date.now(),
|
||||
});
|
||||
|
||||
@@ -2591,10 +2588,7 @@ async function getLastConversationMessages({
|
||||
conversationId,
|
||||
ourUuid,
|
||||
}),
|
||||
preview: getLastConversationPreview({
|
||||
conversationId,
|
||||
ourUuid,
|
||||
}),
|
||||
preview: getLastConversationPreview({ conversationId }),
|
||||
hasUserInitiatedMessages: hasUserInitiatedMessages(conversationId),
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user