mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Added mark pms read route. Fixed error checking and extra code.
This commit is contained in:
@@ -21,8 +21,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
if (!!fromState.name) Analytics.track({'hitType':'pageview','eventCategory':'navigation','eventAction':'navigate','page':'/#/'+toState.name});
|
||||
// clear inbox when entering or exiting inbox tab
|
||||
if (fromState.name=='options.social.inbox' || toState.name=='options.social.inbox') {
|
||||
//@TODO: Protected path. We need a url
|
||||
User.set({'inbox.newMessages': 0});
|
||||
User.clearNewMessages();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user