v3 client: fix ability to send cards

This commit is contained in:
Matteo Pagliazzi
2016-05-17 17:35:49 +02:00
parent bb6809fd6b
commit d293b2d6ee
3 changed files with 23 additions and 6 deletions

View File

@@ -70,6 +70,10 @@ angular.module('habitrpg')
});
}
function clearCards () {
User.user._wrapped && User.set({'flags.cardReceived':false});
}
return {
getChat: getChat,
postChat: postChat,
@@ -80,8 +84,4 @@ angular.module('habitrpg')
markChatSeen: markChatSeen,
clearCards: clearCards,
}
function clearCards() {
User.user._wrapped && User.set({'flags.cardReceived':false});
}
}]);