mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix(client): msg notification properly leaves after visiting party page
closes #7393 closes #7735 closes #7445
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
habitrpg.controller('ChatCtrl', ['$scope', 'Groups', 'Chat', 'User', '$http', 'ApiUrl', 'Notification', 'Members', '$rootScope', 'Analytics',
|
habitrpg.controller('ChatCtrl', ['$scope', 'Groups', 'Chat', 'User', '$http', 'ApiUrl', 'Notification', 'Members', '$rootScope', 'Analytics',
|
||||||
function($scope, Groups, Chat, User, $http, ApiUrl, Notification, Members, $rootScope, Analytics){
|
function($scope, Groups, Chat, User, $http, ApiUrl, Notification, Members, $rootScope, Analytics){
|
||||||
|
if ($scope.group) {
|
||||||
|
Chat.markChatSeen($scope.group.id);
|
||||||
|
}
|
||||||
$scope.message = {content:''};
|
$scope.message = {content:''};
|
||||||
$scope._sending = false;
|
$scope._sending = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user