From 23b6d84f0fdc69f68731f0277a957a5224a8237f Mon Sep 17 00:00:00 2001 From: supertiger1234 Date: Sat, 25 Jan 2020 19:16:21 +0000 Subject: [PATCH] hid own user from recent --- src/components/app/relationships/RecentFriends.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/app/relationships/RecentFriends.vue b/src/components/app/relationships/RecentFriends.vue index fad7577..fb2acc9 100644 --- a/src/components/app/relationships/RecentFriends.vue +++ b/src/components/app/relationships/RecentFriends.vue @@ -21,17 +21,21 @@ export default { FriendsTemplate }, computed: { + user() { + return this.$store.getters.user; + }, channels() { const json = this.$store.getters.channels; const notifications = this.$store.getters.notifications; const keys = Object.keys(json); let result = []; - keys.forEach(function(key) { + keys.forEach(key => { if ( json[key].recipients && json[key].recipients.length > 0 && - !json[key].servers + !json[key].servers && + json[key].recipients[0].uniqueID !== this.user.uniqueID ) result.push(json[key]); });