mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Marked group messages as seen when user syncs new messages
This commit is contained in:
@@ -86,7 +86,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
|||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$scope.removeMemberData = undefined;
|
$scope.removeMemberData = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.openInviteModal = function(group){
|
$scope.openInviteModal = function(group){
|
||||||
@@ -118,7 +118,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
|||||||
$rootScope.openModal('private-message',{controller:'MemberModalCtrl'});
|
$rootScope.openModal('private-message',{controller:'MemberModalCtrl'});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.controller('InviteToGroupCtrl', ['$scope', 'User', 'Groups', 'injectedGroup', '$http', 'Notification', function($scope, User, Groups, injectedGroup, $http, Notification){
|
.controller('InviteToGroupCtrl', ['$scope', 'User', 'Groups', 'injectedGroup', '$http', 'Notification', function($scope, User, Groups, injectedGroup, $http, Notification){
|
||||||
@@ -335,6 +335,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
|||||||
|
|
||||||
$scope.sync = function(group){
|
$scope.sync = function(group){
|
||||||
group.$get();
|
group.$get();
|
||||||
|
//When the user clicks fetch recent messages we need to update that the user has seen the new messages
|
||||||
|
Groups.seenMessage(group._id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// List of Ordering options for the party members list
|
// List of Ordering options for the party members list
|
||||||
|
|||||||
Reference in New Issue
Block a user