-
Notifications
You must be signed in to change notification settings - Fork 0
Notifications with badges #163
Conversation
celian-rib
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est presque ça :)
celian-rib
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quasi
celian-rib
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour moi c'est bon mais jaimerai une validation avec un tests sur l'appli avant de merge.
@tjobit est-ce que tu pourrais check maintenant que tu as les 2 projets en local ? :)
On pourra valider et merger comme ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@killian-mannarelli les badges fonctionnent nickels mais sur les notifs de messages il y a que le titre et plus les contenu du message
celian-rib
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bon j'ai teste et ca marche, donc c'etait surrement un probleme en local sur mon setup, faut juste clean les 2 trucs et c'est good
| import { decryptMessage } from '@/utils/encrypt'; | ||
| import { SimplifiedDropy } from '@/interfaces/dropy.interface'; | ||
| import { incrementUserBadgeNotification } from './user.socket.service'; | ||
| import { Console } from 'console'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fail d'écriture, en gros c'est une habitude de C# où Console est en maj
| }, | ||
| }); | ||
| const decryptMessageContent = decryptMessage(content); | ||
| console.log('decryptMessageContent', decryptMessageContent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a enlever
Le badge (petit cercle rouge avec le nombre de notifs) étant 100% server-side on doit gérer plusieurs choses :
-Ajout en BD du nombre de notifs pour le badge.
-Une méthode dans le socket pour incrémenter ce nombre (pas dans notifications.ts pour éviter les dépendances à un service)
-Une autre méthode pour remettre à zéro à l'ouverture de l'app (pour moi à la connection au socket)
NB : Dans le User.service il n'y a pas d'appel à la méthode du socket service pour éviter les dépendances.
(A TESTER AVANT DE DEPLOY)
#73