1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Update max message size after send

This commit is contained in:
M66B 2023-03-30 21:51:18 +02:00
parent c578708812
commit f2212e0e26

View file

@ -830,7 +830,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
throw new IOException("Test"); throw new IOException("Test");
db.identity().setIdentityState(ident.id, "connected"); db.identity().setIdentityState(ident.id, "connected");
if (ident.max_size == null)
max_size = iservice.getMaxSize(); max_size = iservice.getMaxSize();
List<Address> recipients = new ArrayList<>(); List<Address> recipients = new ArrayList<>();
@ -961,7 +960,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
} }
// Update identity // 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().setIdentityConnected(ident.id, new Date().getTime());
db.identity().setIdentityError(ident.id, null); db.identity().setIdentityError(ident.id, null);