Remove last seen indicator if we get a sync'd outgoing message (#1805)

This mirrors the way Android does things.
This commit is contained in:
Scott Nonnenberg 2017-11-21 14:41:05 -08:00 committed by GitHub
parent 8cba7d26aa
commit 83428e5b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -646,6 +646,9 @@
this.model.messageCollection.add(message, {merge: true});
message.setToExpire();
if (message.isOutgoing()) {
this.removeLastSeenIndicator();
}
if (this.lastSeenIndicator) {
this.lastSeenIndicator.increment(1);
}