From 3abe9fdb9ef485d048497da6046f0b12e421e869 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 29 Sep 2024 19:15:51 +0200 Subject: Fix crash on account creation (resource generation) --- main/src/windows/preferences_window/add_account_dialog.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/windows') diff --git a/main/src/windows/preferences_window/add_account_dialog.vala b/main/src/windows/preferences_window/add_account_dialog.vala index 00acb6aa..bfa98103 100644 --- a/main/src/windows/preferences_window/add_account_dialog.vala +++ b/main/src/windows/preferences_window/add_account_dialog.vala @@ -211,7 +211,7 @@ public class AddAccountDialog : Adw.Window { if (password_group.visible) { // JID + Psw fields were visible: Try to log in string password = password_entry.text; - Account account = new Account(login_jid, null, password, null); + Account account = new Account(login_jid, password); ConnectionManager.ConnectionError.Source? error = yield stream_interactor.get_module(Register.IDENTITY).add_check_account(account); sign_in_continue_spinner.visible = false; @@ -351,7 +351,7 @@ public class AddAccountDialog : Adw.Window { } } try { - Account account = new Account(new Jid.components(username, server_jid.domainpart, null), null, password, null); + Account account = new Account(new Jid.components(username, server_jid.domainpart, null), password); add_activate_account(account); show_success(account); } catch (InvalidJidError e) { -- cgit v1.2.3-70-g09d2