Merge pull request 'paixu' (#239) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/239
This commit is contained in:
commit
5291d70c6c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user