Auto expand outgoing messages

pull/182/head
M66B 4 years ago
parent 7ee724acc9
commit 627bf6b8c3

@ -5325,6 +5325,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.ascending = ascending;
}
boolean getAscending() {
return ascending;
}
void setFilterDuplicates(boolean filter_duplicates) {
if (this.filter_duplicates != filter_duplicates) {
this.filter_duplicates = filter_duplicates;

@ -4215,6 +4215,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
expand = see;
else if (messages.size() == 1)
expand = messages.get(0);
else if (messages.size() > 0) {
TupleMessageEx first = messages.get(adapter.getAscending() ? messages.size() - 1 : 0);
if (first != null && EntityFolder.OUTBOX.equals(first.folderType))
expand = first;
}
if (expand != null &&
(expand.content || unmetered || (expand.size != null && expand.size < download)))

Loading…
Cancel
Save