From dbb6d196b55218c3f5989ec54d42943984d6ca77 Mon Sep 17 00:00:00 2001 From: Vysheng Date: Mon, 10 Nov 2014 14:32:49 +0300 Subject: [PATCH] Added more write_secret_chat_file calls --- interface.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/interface.c b/interface.c index b54756f..ec2fe64 100644 --- a/interface.c +++ b/interface.c @@ -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; }