Only apply defaults if the account is new

Rene Treffer created

Change summary

src/eu/siacs/conversations/ui/EditAccount.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

src/eu/siacs/conversations/ui/EditAccount.java 🔗

@@ -132,9 +132,9 @@ public class EditAccount extends DialogFragment {
 					account.setServer(server);
 				} else {
 					account = new Account(username, server, password);
+					account.setOption(Account.OPTION_USETLS, true);
+					account.setOption(Account.OPTION_USECOMPRESSION, true);
 				}
-				account.setOption(Account.OPTION_USETLS, true);
-				account.setOption(Account.OPTION_USECOMPRESSION, true);
 				account.setOption(Account.OPTION_REGISTER, register.isChecked());
 				if (listener != null) {
 					listener.onAccountEdited(account);