mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
getOlderMessagesByConversation: Allow falsey messageId for resiliency
This commit is contained in:
committed by
Josh Perez
parent
036ce0a6d9
commit
f5a3fdb174
@@ -2655,10 +2655,6 @@ async function getOlderMessagesByConversation(
|
||||
messageId,
|
||||
}: { limit?: number; receivedAt?: number; messageId?: string } = {}
|
||||
) {
|
||||
if (receivedAt !== Number.MAX_VALUE && !messageId) {
|
||||
throw new Error('If receivedAt is supplied, messageId should be as well');
|
||||
}
|
||||
|
||||
const db = getInstance();
|
||||
let rows;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user