Skip to content

Commit

Permalink
matrix: Only set password, device name and login id for new clients
Browse files Browse the repository at this point in the history
This information get's saved into the DB and keyring anyway, so we
don't need to set it each time.
  • Loading branch information
fortysixandtwo authored and agx committed Aug 4, 2024
1 parent 9d047e5 commit 555110b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/ev-matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,6 @@ on_matrix_open (GObject *object, GAsyncResult *result, gpointer user_data)
}
cm_client_set_sync_callback (client, on_client_sync, NULL, NULL);

cm_client_set_password (client, password);
cm_client_set_device_name (client, EV_PROJECT);

account = cm_client_get_account (client);
if (!cm_account_set_login_id (account, username)) {
g_critical ("'%s' isn't a valid username", username);
ev_quit ();
return;
}

g_print ("Logging in %s\n", username);
cm_client_set_enabled (client, TRUE);
joined_rooms = cm_client_get_joined_rooms (client);
Expand Down

0 comments on commit 555110b

Please sign in to comment.