Skip to content
Snippets Groups Projects
Commit 94350eb2 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

- Invitation: resetting unsread count when deleting

parent f09539ee
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,9 @@ angular.module('cesium.es.invitation.services', ['cesium.crypto.services', 'cesi
var type = invitation.type || 'certification';
return that.raw[type].remove(invitation.id)
.then(function() {
// Always reset unread count
csWallet.data.invitations.unreadCount = 0;
if (!csWallet.data.invitations || !csWallet.data.invitations.list) return;
// Remove form list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment