Animated loading screens on startup and first conversation load
FREEBIE
This commit is contained in:
parent
3e8b34f3d0
commit
53f2bfbb57
15 changed files with 444 additions and 79 deletions
|
@ -344,7 +344,7 @@
|
|||
|
||||
// Lastly, we don't send read receipts for any message marked read due to a read
|
||||
// receipt. That's a notification explosion we don't need.
|
||||
this.queueJob(function() {
|
||||
return this.queueJob(function() {
|
||||
return this.markRead(message.get('received_at'), {sendReadReceipts: false});
|
||||
}.bind(this));
|
||||
},
|
||||
|
|
|
@ -342,7 +342,10 @@
|
|||
this.send(promise);
|
||||
}
|
||||
},
|
||||
handleDataMessage: function(dataMessage, confirm) {
|
||||
handleDataMessage: function(dataMessage, confirm, options) {
|
||||
options = options || {};
|
||||
_.defaults(options, {initialLoadComplete: true});
|
||||
|
||||
// This function can be called from the background script on an
|
||||
// incoming message or from the frontend after the user accepts an
|
||||
// identity key change.
|
||||
|
@ -357,7 +360,7 @@
|
|||
console.log('queuing handleDataMessage', message.idForLogging());
|
||||
|
||||
var conversation = ConversationController.create({id: conversationId});
|
||||
conversation.queueJob(function() {
|
||||
return conversation.queueJob(function() {
|
||||
return new Promise(function(resolve) {
|
||||
conversation.fetch().always(function() {
|
||||
console.log('starting handleDataMessage', message.idForLogging());
|
||||
|
@ -500,7 +503,7 @@
|
|||
// because we need to start expiration timers, etc.
|
||||
message.markRead();
|
||||
}
|
||||
if (message.get('unread')) {
|
||||
if (message.get('unread') && options.initialLoadComplete) {
|
||||
conversation.notify(message);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue