From f98cdd7937abe1d5f15437e9abdab3c7524ff87b Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 18 Aug 2020 15:26:28 +0800 Subject: [PATCH] paixu --- static/imservice.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/imservice.js b/static/imservice.js index 94381d5..96df9a0 100644 --- a/static/imservice.js +++ b/static/imservice.js @@ -123,7 +123,7 @@ IMService.prototype.initialContacts = function (friendList) { console.log(that.friends) let sorts = function (friends){ let paixu = function (a,b){ - if(a.date > b.date){ + if(a.date > b.date && b.unReadMessage == 0){ return 0; }else{ return 1; @@ -273,7 +273,7 @@ IMService.prototype.initialIMListeners = function () { // return ; let sorts = function (friends){ let paixu = function (a,b){ - if(a.date > b.date){ + if(a.date > b.date && b.unReadMessage == 0){ return 0; }else{ return 1; @@ -516,7 +516,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){ // return ; let sorts = function (friends){ let paixu = function (a,b){ - if(a.date > b.date){ + if(a.date > b.date && b.unReadMessage == 0){ return 0; }else{ return 1; -- 2.45.2