Sort by inbox position to match phone after link

This commit is contained in:
Josh Perez 2020-03-09 17:43:09 -07:00 committed by Scott Nonnenberg
parent 1f5cb9e8af
commit 4830213a12
25 changed files with 707 additions and 1029 deletions

View file

@ -134,6 +134,7 @@
!this.isUnsupportedMessage() &&
!this.isExpirationTimerUpdate() &&
!this.isKeyChange() &&
!this.isMessageHistoryUnsynced() &&
!this.isVerifiedChange() &&
!this.isGroupUpdate() &&
!this.isEndSession()
@ -147,6 +148,11 @@
type: 'unsupportedMessage',
data: this.getPropsForUnsupportedMessage(),
};
} else if (this.isMessageHistoryUnsynced()) {
return {
type: 'linkNotification',
data: null,
};
} else if (this.isExpirationTimerUpdate()) {
return {
type: 'timerNotification',
@ -343,6 +349,9 @@
isVerifiedChange() {
return this.get('type') === 'verified-change';
},
isMessageHistoryUnsynced() {
return this.get('type') === 'message-history-unsynced';
},
isGroupUpdate() {
return !!this.get('group_update');
},