mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Move inbox collection to the background page
No more waiting, no more messy fetch logic. Background page bootstraps the inbox and keeps it up to date.
This commit is contained in:
@@ -229,17 +229,7 @@
|
||||
only: number
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
fetchActive: function(options) {
|
||||
return this.fetch(_.extend(options, {
|
||||
index: {
|
||||
name: 'inbox', // 'inbox' index on active_at
|
||||
order: 'desc' // ORDER timestamp DESC
|
||||
}
|
||||
// TODO pagination/infinite scroll
|
||||
// limit: 10, offset: page*10,
|
||||
}));
|
||||
}
|
||||
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user