mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +01:00
notifications: fixes
This commit is contained in:
@@ -502,7 +502,7 @@ api.seenChat = {
|
||||
|
||||
// Remove from response
|
||||
user.notifications = user.notifications.filter(n => {
|
||||
if (n.type === 'NEW_CHAT_MESSAGE' && n.data.group.id === groupId) {
|
||||
if (n && n.type === 'NEW_CHAT_MESSAGE' && n.data.group.id === groupId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user