Richieste d'Amicizia: aggiunto data di richiesta e di amicizia

This commit is contained in:
paoloar77
2022-01-15 12:25:36 +01:00
parent bf74eb2a03
commit 42e7037100
7 changed files with 20 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
import { defineStore } from 'pinia'
import {
IFriends,
ISigninOptions,
ISignupOptions, IUserFields, IUserProfile, IUserState,
} from '@src/model'
@@ -176,13 +177,6 @@ export const useUserStore = defineStore('UserStore', {
return false
},
IsReqFriendByUsername(username: string): boolean {
if (this.my.profile.req_friends)
return this.my.profile.req_friends.includes(username)
else
return false
},
getUserByUsername(username: string): IUserFields | null {
// Check if is this User!
if (this.my.username === username) return this.my