|
|
@ -533,6 +533,7 @@ async function handleTypingMessage(
|
|
|
|
isTyping: started,
|
|
|
|
isTyping: started,
|
|
|
|
sender: source,
|
|
|
|
sender: source,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
await conversation.commit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -621,11 +622,11 @@ async function handleMessageRequestResponse(
|
|
|
|
);
|
|
|
|
);
|
|
|
|
const mostRecentActiveAt =
|
|
|
|
const mostRecentActiveAt =
|
|
|
|
Math.max(...compact(convosToMerge.map(m => m.get('active_at')))) || Date.now();
|
|
|
|
Math.max(...compact(convosToMerge.map(m => m.get('active_at')))) || Date.now();
|
|
|
|
|
|
|
|
|
|
|
|
conversationToApprove.set({
|
|
|
|
conversationToApprove.set({
|
|
|
|
active_at: mostRecentActiveAt,
|
|
|
|
active_at: mostRecentActiveAt,
|
|
|
|
isApproved: true,
|
|
|
|
isApproved: true,
|
|
|
|
didApproveMe: true,
|
|
|
|
didApproveMe: true,
|
|
|
|
isTrustedForAttachmentDownload: true,
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (convosToMerge.length) {
|
|
|
|
if (convosToMerge.length) {
|
|
|
|