Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-11-21 02:28:29 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-11-21 02:28:29 +0300
commitb10dc45bfc190f9939662475a0e4a8d36011e0f9 (patch)
treef4a4bbf3762e83e4a22969997c9654c532cf672f
parent6fce2cf8fa835a354adfafab6e992412d2164835 (diff)
Fix secret chat duplication issue
-rw-r--r--telegram-base.c1
-rw-r--r--telegram-purple.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/telegram-base.c b/telegram-base.c
index 3770e22..732a7cd 100644
--- a/telegram-base.c
+++ b/telegram-base.c
@@ -591,7 +591,6 @@ void telegram_login (struct tgl_state *TLS) {
read_auth_file (TLS);
read_state_file (TLS);
- read_secret_chat_file (TLS);
if (all_authorized (TLS)) {
telegram_send_sms (TLS);
return;
diff --git a/telegram-purple.c b/telegram-purple.c
index e97fe9b..821ba92 100644
--- a/telegram-purple.c
+++ b/telegram-purple.c
@@ -412,7 +412,9 @@ void on_ready (struct tgl_state *TLS) {
purple_connection_set_state (conn->gc, PURPLE_CONNECTED);
purple_connection_set_display_name (conn->gc, purple_account_get_username (conn->pa));
purple_blist_add_account (conn->pa);
-
+
+ read_secret_chat_file (TLS);
+
debug ("seq = %d, pts = %d, date = %d", TLS->seq, TLS->pts, TLS->date);
tgl_do_get_difference (TLS, purple_account_get_bool (conn->pa, "history-sync-all", FALSE), tgp_notify_on_error_gw, NULL);
tgl_do_get_dialog_list (TLS, 200, 0, on_get_dialog_list_done, NULL);