changes upload method

This commit is contained in:
2026-03-18 16:03:29 +02:00
parent c945846409
commit b56875c9a9
13 changed files with 101 additions and 81 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ void ask_register(params_t *params, char *email);
return 0; \
}
/* TODO: refactor to process callbacks */
int process_server_command(char *line, int l_len, app_t *app) {
int ws_pos = l_len;
query_args_t *q_args = app->query_args;
@@ -87,7 +88,7 @@ int process_server_command(char *line, int l_len, app_t *app) {
"You've been successfully registered.\n"
"Welcome, %s!",
app->params->uname);
notification("Registration", query, dc_normal);
notification("Registration", dc_normal, query);
print_bars(app);
return 0;
} else {
@@ -111,6 +112,7 @@ int process_server_command(char *line, int l_len, app_t *app) {
return 0;
}
/* TODO: Hide details */
if (q_args->state == S_WAIT_SERVER) {
if (q_args->server_message.text == NULL) {
q_args->server_message.text = malloc(l_len + 1);