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
},
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]);
});