mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-19 22:31:25 +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
|
||||
},
|
||||
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]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue