diff --git a/sdk/init/msgEvent.js b/sdk/init/msgEvent.js index 3ef2a51a740b11a1ee41d1c9abb6b9de10a1d2a0..f2f172a7f812dce4821de1efa883bebdc40979a5 100644 --- a/sdk/init/msgEvent.js +++ b/sdk/init/msgEvent.js @@ -174,7 +174,7 @@ msgEvent.onMsg(async res=>{ 'uni_modules/uni-im/pages/userList/userList', 'uni_modules/uni-im/pages/contacts/contacts' ] - if (canCreateNotification && !$state.ext.appIsActive || !pathList.includes(topViewRoute)) { + if (canCreateNotification && (!$state.ext.appIsActive || !pathList.includes(topViewRoute)) ) { // console.log('payload',payload); let { content,