fix: typing message trigger ui refresh

also do not mark a conversation as trusted for attachment when getting
messagerequest response
pull/2524/head
Audric Ackermann 3 years ago
parent cec368b38e
commit 67817c516f

@ -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) {

Loading…
Cancel
Save