fix strette di mano

This commit is contained in:
Surya Paolo
2023-01-09 04:05:18 +01:00
parent d684d7a46f
commit a9367d5aef
4 changed files with 311 additions and 206 deletions

View File

@@ -5475,7 +5475,8 @@ export const tools = {
.then((res: any) => {
if (res) {
notifStore.updateNotification = true
userStore.my.profile.handshake = [...userStore.my.profile.handshake, res]
userStore.my.profile.handshake = res.myuser.profile.handshake
userStore.userprofile = res.userprofile
tools.showPositiveNotif($q, t('db.addedhandshake'))
}
})
@@ -5494,7 +5495,7 @@ export const tools = {
userStore.setFriendsCmd($q, t, username, usernameDest, shared_consts.FRIENDSCMD.REMOVE_FROM_MYHANDSHAKE, null).then((res) => {
if (res) {
userStore.my.profile.handshake = userStore.my.profile.handshake.filter((rec: IFriends) => rec.username !== usernameDest)
userStore.userprofile.profile.handshake = userStore.userprofile.profile.handshake.filter((rec: IFriends) => rec.username !== username)
tools.showPositiveNotif($q, t('db.removedhandshake'))
}
})