Signal, messages-recv: Fix previous commit, fix log
This commit is contained in:
@@ -601,6 +601,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
* type = "image for the high res picture"
|
||||
*/
|
||||
const profilePictureUrl = async (jid: string, type: 'preview' | 'image' = 'preview', timeoutMs?: number) => {
|
||||
// TOOD: Add support for tctoken, existingID, and newsletter + group options
|
||||
jid = jidNormalizedUser(jid)
|
||||
const result = await query(
|
||||
{
|
||||
|
||||
@@ -447,8 +447,8 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
// Schedule phone request with delay (like whatsmeow)
|
||||
messageRetryManager.schedulePhoneRequest(msgId, async () => {
|
||||
try {
|
||||
const msgId = await requestPlaceholderResend(msgKey)
|
||||
logger.debug(`sendRetryRequest: requested placeholder resend for message ${msgId} (scheduled)`)
|
||||
const requestId = await requestPlaceholderResend(msgKey)
|
||||
logger.debug(`sendRetryRequest: requested placeholder resend (${requestId}) for message ${msgId} (scheduled)`)
|
||||
} catch (error) {
|
||||
logger.warn({ error, msgId }, 'failed to send scheduled phone request')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user