Move expiring message time earlier if read sync has earlier time

This commit is contained in:
Scott Nonnenberg
2018-08-06 11:31:41 -07:00
parent a01db40e27
commit 9ed1ee90f8
3 changed files with 38 additions and 20 deletions

View File

@@ -139,6 +139,7 @@
// Listening for out-of-band data updates
this.on('delivered', this.updateAndMerge);
this.on('read', this.updateAndMerge);
this.on('expiration-change', this.updateAndMerge);
this.on('expired', this.onExpired);
},