mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-05 13:33:00 +00:00
Merge branch 'release' into develop
This commit is contained in:
commit
5dc0f5bb9b
2 changed files with 2 additions and 2 deletions
|
|
@ -502,7 +502,7 @@ api.seenChat = {
|
|||
|
||||
// Remove from response
|
||||
user.notifications = user.notifications.filter(n => {
|
||||
if (n && n.type === 'NEW_CHAT_MESSAGE' && n.data.group.id === groupId) {
|
||||
if (n && n.type === 'NEW_CHAT_MESSAGE' && n.data && n.data.group && n.data.group.id === groupId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -703,7 +703,7 @@ function _removeMessagesFromMember (member, groupId) {
|
|||
}
|
||||
|
||||
member.notifications = member.notifications.filter(n => {
|
||||
if (n && n.type === 'NEW_CHAT_MESSAGE' && n.date && n.data.group && n.data.group.id === groupId) {
|
||||
if (n && n.type === 'NEW_CHAT_MESSAGE' && n.data && n.data.group && n.data.group.id === groupId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue