Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Conversation

@killian-mannarelli
Copy link
Contributor

@killian-mannarelli killian-mannarelli commented Sep 22, 2022

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

Copy link
Member

@celian-rib celian-rib left a 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 celian-rib changed the title WIP : Notifications with badges Notifications with badges Sep 23, 2022
@celian-rib celian-rib linked an issue Sep 23, 2022 that may be closed by this pull request
Copy link
Member

@celian-rib celian-rib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quasi

@celian-rib celian-rib added the enhancement Extra attention is needed label Sep 24, 2022
Copy link
Member

@celian-rib celian-rib left a 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

Copy link
Member

@celian-rib celian-rib left a 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

Copy link
Member

@celian-rib celian-rib left a 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';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a enlever

@killian-mannarelli killian-mannarelli merged commit b500534 into main Nov 20, 2022
@celian-rib celian-rib deleted the DB_73-notif-badges branch November 26, 2022 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications badges

3 participants