diff --git a/resources/assets/js/pages/manage/components/DialogItem.vue b/resources/assets/js/pages/manage/components/DialogItem.vue index 31149fbe9..645092ee8 100644 --- a/resources/assets/js/pages/manage/components/DialogItem.vue +++ b/resources/assets/js/pages/manage/components/DialogItem.vue @@ -218,14 +218,13 @@ export default { }, onOpenDialog(userid) { - if (this.dialogData.type != 'group') { - return + if (this.dialogData.type == 'group' || ![this.dialogData.dialog_user?.userid, this.userId].includes(userid)) { + this.$store.dispatch("openDialogUserid", userid).then(_ => { + this.goForward({name: 'manage-messenger'}) + }).catch(({msg}) => { + $A.modalError(msg) + }); } - this.$store.dispatch("openDialogUserid", userid).then(_ => { - this.goForward({name: 'manage-messenger'}) - }).catch(({msg}) => { - $A.modalError(msg) - }); }, onMention() {