Fix #68 - action coloration not working for boosted statuses

This commit is contained in:
Thomas 2022-05-21 09:19:56 +02:00
parent 1ea6400c88
commit ae4bbd32e8

View file

@ -680,7 +680,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
}
});
} else {
if (status.favourited) {
if (statusToDeal.favourited) {
statusesVM.unFavourite(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, statusToDeal.id)
.observe((LifecycleOwner) context, _status -> {
statusToDeal.favourited = _status.favourited;
@ -1544,7 +1544,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
int position = 0;
if (statusList != null) {
for (Status _status : statusList) {
if (_status.id.compareTo(status.id) == 0) {
if (_status.id.compareTo(status.id) == 0 || (_status.reblog != null && _status.reblog.id.compareTo(status.id) == 0)) {
break;
}
position++;