no message

This commit is contained in:
2025-03-13 00:32:20 +03:00
parent 91e40c4393
commit 1d97048de1
204 changed files with 984 additions and 889 deletions

View File

@@ -17,17 +17,16 @@ public class Email extends ComponentsServerPass<EmailMessage> {
@Override
protected boolean canStart(Object... args) throws Exception {
recipients = null;
if (args.length<=1) {
if (args.length <= 1) {
return false;
}
target = (EmailMessage) args[0];
if (args[1]instanceof Vector) {
if (args[1] instanceof Vector) {
recipients = (Vector<String>) args[1];
return true;
}
else if (args[1] instanceof String){
recipients= new Vector<>();
for (int i=1; i< args.length; ++i){
} else if (args[1] instanceof String) {
recipients = new Vector<>();
for (int i = 1; i < args.length; ++i) {
recipients.add((String) args[i]);
}
return true;