提交 454d67ad 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复 部分情况下,APP 端所登录的账号于其他端同时进行登录后发送消息时,也会在 APP端创建通知栏消息的问题

上级 76497daf
...@@ -174,7 +174,7 @@ msgEvent.onMsg(async res=>{ ...@@ -174,7 +174,7 @@ msgEvent.onMsg(async res=>{
'uni_modules/uni-im/pages/userList/userList', 'uni_modules/uni-im/pages/userList/userList',
'uni_modules/uni-im/pages/contacts/contacts' '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); // console.log('payload',payload);
let { let {
content, content,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册