From 6a8835b923893baf7b75248a45d11ab6814264d6 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 1 Dec 2018 07:15:55 +0900 Subject: [PATCH] Exclude remote user or myself from talk user suggestions (#3449) --- src/client/app/common/views/components/messaging.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/messaging.vue b/src/client/app/common/views/components/messaging.vue index 8ed42dbf52..1b22571cda 100644 --- a/src/client/app/common/views/components/messaging.vue +++ b/src/client/app/common/views/components/messaging.vue @@ -115,9 +115,10 @@ export default Vue.extend({ } this.$root.api('users/search', { query: this.q, + localOnly: true, limit: 10 }).then(users => { - this.result = users; + this.result = users.filter(user => user.id != this.$store.state.i.id); }); }, navigate(user) {