paixu
This commit is contained in:
parent
7090635886
commit
5fd62e4010
@ -119,7 +119,7 @@ IMService.prototype.initialContacts = function (friendList) {
|
|||||||
console.log(that.friends)
|
console.log(that.friends)
|
||||||
let sorts = function (friends){
|
let sorts = function (friends){
|
||||||
let paixu = function (a,b){
|
let paixu = function (a,b){
|
||||||
if(a.date > b.date){
|
if(a.date > b.date && b.unReadMessage == 0){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
return 1;
|
return 1;
|
||||||
@ -266,7 +266,7 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
// return ;
|
// return ;
|
||||||
let sorts = function (friends){
|
let sorts = function (friends){
|
||||||
let paixu = function (a,b){
|
let paixu = function (a,b){
|
||||||
if(a.date > b.date){
|
if(a.date > b.date && b.unReadMessage == 0){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
return 1;
|
return 1;
|
||||||
@ -394,7 +394,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
|||||||
// return ;
|
// return ;
|
||||||
let sorts = function (friends){
|
let sorts = function (friends){
|
||||||
let paixu = function (a,b){
|
let paixu = function (a,b){
|
||||||
if(a.date > b.date){
|
if(a.date > b.date && b.unReadMessage == 0){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user