mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-07-06 11:30:46 +00:00
hid own user from recent
This commit is contained in:
parent
e7c4672d8f
commit
23b6d84f0f
1 changed files with 6 additions and 2 deletions
|
|
@ -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]);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue