Merge pull request 'paixu' (#62) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/62
This commit is contained in:
luyuan 2020-08-18 15:27:14 +08:00
commit 19187b67fc

View File

@ -119,7 +119,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;
@ -266,7 +266,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;
@ -394,7 +394,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;