mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Prevent sending with disabled identities
This commit is contained in:
@@ -490,6 +490,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
EntityIdentity ident = db.identity().getIdentity(message.identity);
|
||||
if (ident == null)
|
||||
throw new IllegalArgumentException("Identity not found");
|
||||
if (!ident.synchronize)
|
||||
throw new IllegalArgumentException("Identity is disabled");
|
||||
|
||||
if (!message.content)
|
||||
throw new IllegalArgumentException("Message body missing");
|
||||
|
||||
Reference in New Issue
Block a user