diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index a0dfbc67..dd931e67 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -79,7 +79,8 @@ const UserSettings = { MuteList, EmojiInput, Autosuggest, - BlockCard + BlockCard, + MuteCard }, computed: { user () { @@ -347,6 +348,12 @@ const UserSettings = { return !user || user.statusnet_blocking || user.id === this.$store.state.users.currentUser.id }) }, + filterUnMutedUsers (userIds) { + return reject(userIds, (userId) => { + const user = this.$store.getters.findUser(userId) + return !user || user.muted || user.id === this.$store.state.users.currentUser.id + }) + }, queryUserIds (query) { return userSearchApi.search({query, store: this.$store}) .then((users) => { diff --git a/src/components/user_settings/user_settings.vue b/src/components/user_settings/user_settings.vue index d79abd0f..8fcf4c07 100644 --- a/src/components/user_settings/user_settings.vue +++ b/src/components/user_settings/user_settings.vue @@ -206,6 +206,11 @@
+
+ + + +