hid own user from recent

This commit is contained in:
supertiger1234 2020-01-25 19:16:21 +00:00
parent e7c4672d8f
commit 23b6d84f0f

View file

@ -21,17 +21,21 @@ export default {
FriendsTemplate FriendsTemplate
}, },
computed: { computed: {
user() {
return this.$store.getters.user;
},
channels() { channels() {
const json = this.$store.getters.channels; const json = this.$store.getters.channels;
const notifications = this.$store.getters.notifications; const notifications = this.$store.getters.notifications;
const keys = Object.keys(json); const keys = Object.keys(json);
let result = []; let result = [];
keys.forEach(function(key) { keys.forEach(key => {
if ( if (
json[key].recipients && json[key].recipients &&
json[key].recipients.length > 0 && json[key].recipients.length > 0 &&
!json[key].servers !json[key].servers &&
json[key].recipients[0].uniqueID !== this.user.uniqueID
) )
result.push(json[key]); result.push(json[key]);
}); });