diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index d3b5cec9e..126a8a112 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -2192,6 +2192,16 @@ export default { */ openDialogUserid({state, dispatch}, userid) { return new Promise(function (resolve, reject) { + const dialog = state.cacheDialogs.find(item => { + if (item.type !== 'user' || !item.dialog_user) { + return false + } + return item.dialog_user.userid === userid + }); + if (dialog) { + dispatch("openDialog", dialog.id); + return; + } dispatch("call", { url: 'dialog/open/user', data: {