mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Support new ETag format in notification states
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { sameResourceState } from '../../storage/Conditions';
|
||||
import type { NotificationGenerator } from './generate/NotificationGenerator';
|
||||
import type { NotificationEmitter } from './NotificationEmitter';
|
||||
import type { NotificationHandlerInput } from './NotificationHandler';
|
||||
@@ -37,7 +38,7 @@ export class ComposedNotificationHandler extends NotificationHandler {
|
||||
|
||||
const { state } = input.channel;
|
||||
// In case the state matches there is no need to send the notification
|
||||
if (typeof state === 'string' && state === notification.state) {
|
||||
if (typeof state === 'string' && notification.state && sameResourceState(state, notification.state)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user