File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
apps/desktop/src/lib/feed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,9 @@ export class Feed {
200
200
201
201
private async handleLastAdded ( entry : FeedEntry ) {
202
202
this . lastAddedId . set ( entry . id ) ;
203
+ }
203
204
205
+ private handleNewItemObserved ( entry : FeedEntry ) {
204
206
if ( entry instanceof Workflow ) {
205
207
const stackId = entry . kind . subject ?. stackId ;
206
208
if ( stackId ) this . stackService . invalidateStackDetailsUpdate ( stackId ) ;
@@ -297,7 +299,6 @@ export class Feed {
297
299
}
298
300
299
301
async updateCombinedFeed ( ) {
300
- if ( ! this . initialized ) return ;
301
302
if ( this . updateTimeout ) {
302
303
clearTimeout ( this . updateTimeout ) ;
303
304
}
@@ -331,6 +332,12 @@ export class Feed {
331
332
const existing = entries . find ( ( entry ) => entry . id === lessRecent . id ) ;
332
333
if ( ! existing ) {
333
334
lastAddedItem = lessRecent ;
335
+
336
+ this . handleNewItemObserved ( lastAddedItem ) ;
337
+
338
+ if ( ! this . initialized ) {
339
+ return entries ;
340
+ }
334
341
return [ lessRecent , ...entries ] ;
335
342
}
336
343
return entries ;
You can’t perform that action at this time.
0 commit comments