Translate welcome email.

This commit is contained in:
Paulo Gustavo Veiga
2022-03-27 07:32:53 -03:00
parent 20b2e8f1e8
commit f70f1d89ab
10 changed files with 92 additions and 92 deletions

View File

@@ -138,17 +138,4 @@ public class AdminController extends BaseController {
userService.removeUser(user);
}
private boolean isWelcomeMap(@NotNull Mindmap mindmap) throws UnsupportedEncodingException {
// Is welcome map ?
final String xmlStr = mindmap.getXmlStr();
boolean oldWelcomeMap = xmlStr.contains("Welcome to WiseMapping") && xmlStr.contains("My Wisemaps");
return oldWelcomeMap;
}
public boolean isSimpleMap(@NotNull Mindmap mindmap) throws UnsupportedEncodingException {
String xmlStr = mindmap.getXmlStr();
String[] topics = xmlStr.split(Pattern.quote("<topic"));
return topics.length <= 3;
}
}