Added more write_secret_chat_file calls
This commit is contained in:
parent
723756f3ae
commit
dbb6d196b5
@ -1272,6 +1272,9 @@ int complete_string_list (char **list, int index, const char *text, int len, cha
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
void print_msg_success_gw (struct tgl_state *TLS, void *extra, int success, struct tgl_message *M);
|
||||
void print_encr_chat_success_gw (struct tgl_state *TLS, void *extra, int success, struct tgl_secret_chat *E);;
|
||||
void print_success_gw (struct tgl_state *TLS, void *extra, int success);
|
||||
|
||||
int complete_command_list (int index, const char *text, int len, char **R) {
|
||||
index ++;
|
||||
@ -1279,9 +1282,6 @@ int complete_command_list (int index, const char *text, int len, char **R) {
|
||||
index ++;
|
||||
}
|
||||
if (commands[index].name) {
|
||||
void print_msg_success_gw (struct tgl_state *TLS, void *extra, int success, struct tgl_message *M);
|
||||
void print_encr_chat_success_gw (struct tgl_state *TLS, void *extra, int success, struct tgl_secret_chat *E);;
|
||||
void print_success_gw (struct tgl_state *TLS, void *extra, int success);
|
||||
*R = strdup (commands[index].name);
|
||||
assert (*R);
|
||||
return index;
|
||||
@ -1952,7 +1952,8 @@ void secret_chat_update_gw (struct tgl_state *TLSR, struct tgl_secret_chat *U, u
|
||||
if (!binlog_read) { return; }
|
||||
|
||||
if ((flags & TGL_UPDATE_REQUESTED) && !disable_auto_accept) {
|
||||
tgl_do_accept_encr_chat_request (TLS, U, 0, 0);
|
||||
//tgl_do_accept_encr_chat_request (TLS, U, 0, 0);
|
||||
tgl_do_accept_encr_chat_request (TLS, U, print_encr_chat_success_gw, 0);
|
||||
}
|
||||
|
||||
if (disable_output && !notify_ev) { return; }
|
||||
|
Loading…
Reference in New Issue
Block a user