commit: 8197c77f75929aad557c98a5f698159b1a6d0c90
parent: a733a33d36af6fed3f338449218686d22b1c9354
Author: HJ <spam@hjkos.com>
Date: Fri, 25 Jan 2019 15:00:06 +0000
Merge branch 'hotifx-convos' into 'develop'
Fix ordering in convos
See merge request pleroma/pleroma-fe!477
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js
@@ -7,13 +7,13 @@ const sortById = (a, b) => {
const isSeqA = !Number.isNaN(seqA)
const isSeqB = !Number.isNaN(seqB)
if (isSeqA && isSeqB) {
- return seqA > seqB ? -1 : 1
+ return seqA < seqB ? -1 : 1
} else if (isSeqA && !isSeqB) {
return 1
} else if (!isSeqA && isSeqB) {
return -1
} else {
- return a.id > b.id ? -1 : 1
+ return a.id < b.id ? -1 : 1
}
}