|
|
@ -141,6 +141,7 @@ const handleContactReceived = async (
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (contactReceived.isApproved === true) {
|
|
|
|
if (contactReceived.isApproved === true) {
|
|
|
|
|
|
|
|
if (!contactConvo.isApproved()) {
|
|
|
|
// checking for existence of field on protobuf
|
|
|
|
// checking for existence of field on protobuf
|
|
|
|
await contactConvo.setIsApproved(Boolean(contactReceived.isApproved));
|
|
|
|
await contactConvo.setIsApproved(Boolean(contactReceived.isApproved));
|
|
|
|
// TODO: add message search in convo for pre-existing msgRequestResponse msg only happens once per convo
|
|
|
|
// TODO: add message search in convo for pre-existing msgRequestResponse msg only happens once per convo
|
|
|
@ -153,6 +154,7 @@ const handleContactReceived = async (
|
|
|
|
expireTimer: 0,
|
|
|
|
expireTimer: 0,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
contactConvo.updateLastMessage();
|
|
|
|
contactConvo.updateLastMessage();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (contactReceived.didApproveMe === true) {
|
|
|
|
if (contactReceived.didApproveMe === true) {
|
|
|
|
// checking for existence of field on message
|
|
|
|
// checking for existence of field on message
|
|
|
|