mirror of
https://github.com/ChronosX88/Influence.git
synced 2024-11-23 18:12:18 +00:00
Fixed bug with two dialogs (first with last messages and second not with it)
This commit is contained in:
parent
dc66de02fb
commit
8b9c07de89
@ -56,6 +56,11 @@ public class DialogListPresenter implements CoreContracts.IDialogListPresenterCo
|
|||||||
if(dialog2.getLastMessage() != null && dialog1.getLastMessage() != null) {
|
if(dialog2.getLastMessage() != null && dialog1.getLastMessage() != null) {
|
||||||
return Long.compare(dialog2.getLastMessage().getCreatedAt().getTime(), dialog1.getLastMessage().getCreatedAt().getTime());
|
return Long.compare(dialog2.getLastMessage().getCreatedAt().getTime(), dialog1.getLastMessage().getCreatedAt().getTime());
|
||||||
}
|
}
|
||||||
|
if(dialog2.getLastMessage() != null) {
|
||||||
|
return 1;
|
||||||
|
} else if(dialog1.getLastMessage() != null) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user