File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ function validateAps(aps: Aps): void {
274274 contentAvailable : 'content-available' ,
275275 mutableContent : 'mutable-content' ,
276276 threadId : 'thread-id' ,
277+ contentChanged : 'content-changed' ,
277278 } ;
278279 Object . keys ( propertyMappings ) . forEach ( ( key ) => {
279280 if ( key in aps && propertyMappings [ key ] in aps ) {
@@ -300,6 +301,15 @@ function validateAps(aps: Aps): void {
300301 delete aps [ 'mutable-content' ] ;
301302 }
302303 }
304+
305+ const contentChanged = aps [ 'content-changed' ] ;
306+ if ( typeof contentChanged !== 'undefined' && contentChanged !== 1 ) {
307+ if ( contentChanged === true ) {
308+ aps [ 'content-changed' ] = 1 ;
309+ } else {
310+ delete aps [ 'content-changed' ] ;
311+ }
312+ }
303313}
304314
305315function validateApsSound ( sound : string | CriticalSound | undefined ) : void {
You can’t perform that action at this time.
0 commit comments