mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Update max message size after send
This commit is contained in:
parent
c578708812
commit
f2212e0e26
1 changed files with 2 additions and 4 deletions
|
@ -830,8 +830,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|||
throw new IOException("Test");
|
||||
db.identity().setIdentityState(ident.id, "connected");
|
||||
|
||||
if (ident.max_size == null)
|
||||
max_size = iservice.getMaxSize();
|
||||
max_size = iservice.getMaxSize();
|
||||
|
||||
List<Address> recipients = new ArrayList<>();
|
||||
if (message.headers == null || !Boolean.TRUE.equals(message.resend)) {
|
||||
|
@ -961,8 +960,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|||
}
|
||||
|
||||
// Update identity
|
||||
if (max_size != null)
|
||||
db.identity().setIdentityMaxSize(ident.id, max_size);
|
||||
db.identity().setIdentityMaxSize(ident.id, max_size);
|
||||
db.identity().setIdentityConnected(ident.id, new Date().getTime());
|
||||
db.identity().setIdentityError(ident.id, null);
|
||||
|
||||
|
|
Loading…
Reference in a new issue