@@ -374,16 +374,18 @@ async function updateUserdata(forceUpdate = false) {
374
374
await ttStorage . set ( { userdata : { ...oldUserdata , ...userdata } } ) ;
375
375
376
376
await showIconBars ( ) . catch ( ( error ) => console . error ( "Error while updating the icon bars." , error ) ) ;
377
- await notifyEventMessages ( ) . catch ( ( error ) => console . error ( "Error while sending event and message notifications." , error ) ) ;
377
+ if ( updateEssential ) {
378
+ await notifyEventMessages ( ) . catch ( ( error ) => console . error ( "Error while sending event and message notifications." , error ) ) ;
379
+ await notifyTravelLanding ( ) . catch ( ( error ) => console . error ( "Error while sending travel landing notifications." , error ) ) ;
380
+ await notifyBars ( ) . catch ( ( error ) => console . error ( "Error while sending bar notification." , error ) ) ;
381
+ await notifyChain ( ) . catch ( ( error ) => console . error ( "Error while sending chain notifications." , error ) ) ;
382
+ await notifyTraveling ( ) . catch ( ( error ) => console . error ( "Error while sending traveling notifications." , error ) ) ;
383
+ }
378
384
await notifyStatusChange ( ) . catch ( ( error ) => console . error ( "Error while sending status change notifications." , error ) ) ;
379
385
await notifyCooldownOver ( ) . catch ( ( error ) => console . error ( "Error while sending cooldown notifications." , error ) ) ;
380
- await notifyTravelLanding ( ) . catch ( ( error ) => console . error ( "Error while sending travel landing notifications." , error ) ) ;
381
386
await notifyEducation ( ) . catch ( ( error ) => console . error ( "Error while sending education notifications." , error ) ) ;
382
387
await notifyNewDay ( ) . catch ( ( error ) => console . error ( "Error while sending new day notification." , error ) ) ;
383
- await notifyBars ( ) . catch ( ( error ) => console . error ( "Error while sending bar notification." , error ) ) ;
384
- await notifyChain ( ) . catch ( ( error ) => console . error ( "Error while sending chain notifications." , error ) ) ;
385
388
await notifyHospital ( ) . catch ( ( error ) => console . error ( "Error while sending hospital notifications." , error ) ) ;
386
- await notifyTraveling ( ) . catch ( ( error ) => console . error ( "Error while sending traveling notifications." , error ) ) ;
387
389
await notifySpecificCooldowns ( ) . catch ( ( error ) => console . error ( "Error while sending specific cooldown notifications." , error ) ) ;
388
390
389
391
await ttStorage . set ( { notifications } ) ;
0 commit comments