Skip to content

Commit

Permalink
fix: message conflict log
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKingKong committed Jun 21, 2024
1 parent f82dcbc commit a5ff5c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function showUnresolvedTabPage(path) {
type: 'rc-adapter-register-customized-page',
page: unresolvedLogsPage,
}, '*');
if (unresolvedLogsPage.hidden && !!path && path == '/customizedTabs/unresolve') {
if (unresolvedLogsPage.hidden && !!path && (path == '/customizedTabs/unresolve' || path == '/messageLogger' || path == '/callLogger')) {
document.querySelector("#rc-widget-adapter-frame").contentWindow.postMessage({
type: 'rc-adapter-navigate-to',
path: 'goBack',
Expand Down Expand Up @@ -652,7 +652,7 @@ window.addEventListener('message', async (e) => {
contactName: data.body.formData.newContactName === '' ? data.body.formData.contactName : data.body.formData.newContactName
});
if (!!data.body.formData.isUnresolved) {
await showUnresolvedTabPage();
await showUnresolvedTabPage(data.path);
}
break;
case 'editLog':
Expand Down Expand Up @@ -936,7 +936,9 @@ window.addEventListener('message', async (e) => {
contactName: data.body.formData.newContactName === '' ? data.body.formData.contactName : data.body.formData.newContactName
});
}
await showUnresolvedTabPage();
if (!!data.body.formData.isUnresolved) {
await showUnresolvedTabPage(data.path);
}
window.postMessage({ type: 'rc-log-modal-loading-off' }, '*');
}
}
Expand Down

0 comments on commit a5ff5c0

Please sign in to comment.