mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Fixed expanding large messages on metered connection
This commit is contained in:
parent
f4cdbbf08d
commit
f233ea9007
1 changed files with 3 additions and 4 deletions
|
@ -1396,9 +1396,7 @@ public class FragmentMessages extends FragmentEx {
|
|||
TupleMessageEx single = null;
|
||||
TupleMessageEx see = null;
|
||||
for (TupleMessageEx message : messages) {
|
||||
if (!message.duplicate &&
|
||||
!EntityFolder.TRASH.equals(message.folderType) &&
|
||||
(!metered || (message.size != null && message.size < download))) {
|
||||
if (!message.duplicate && !EntityFolder.TRASH.equals(message.folderType)) {
|
||||
count++;
|
||||
single = message;
|
||||
if (!message.ui_seen) {
|
||||
|
@ -1426,7 +1424,8 @@ public class FragmentMessages extends FragmentEx {
|
|||
else if (messages.size() == 1)
|
||||
expand = messages.get(0);
|
||||
|
||||
if (expand != null) {
|
||||
if (expand != null &&
|
||||
(expand.content || !metered || (expand.size != null && expand.size < download))) {
|
||||
expanded.add(expand.id);
|
||||
handleExpand(expand.id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue