From 1198159162a939d88a190e7ae6b197bd0d88ac9a Mon Sep 17 00:00:00 2001 From: Vysheng Date: Fri, 6 Dec 2013 20:40:52 +0400 Subject: [PATCH] Fixed bug --- binlog.c | 4 ++++ interface.c | 2 +- mtproto-client.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/binlog.c b/binlog.c index 24624b5..c006e65 100644 --- a/binlog.c +++ b/binlog.c @@ -1030,6 +1030,10 @@ void replay_log_event (void) { struct message *M = message_get (*(long long *)rptr); rptr += 2; assert (M); + if (M->flags & FLAG_PENDING) { + message_remove_unsent (M); + M->flags &= ~FLAG_PENDING; + } message_remove_tree (M); message_del_peer (M); M->id = *(rptr ++); diff --git a/interface.c b/interface.c index c8a1519..3f86c8e 100644 --- a/interface.c +++ b/interface.c @@ -562,7 +562,7 @@ void interpreter (char *line UU) { #define GET_PEER \ id = next_token_peer (); \ if (!cmp_peer_id (id, PEER_NOT_FOUND)) { \ - printf ("Bad user/char id\n"); \ + printf ("Bad user/chat id\n"); \ RET; \ } #define GET_PEER_USER \ diff --git a/mtproto-client.c b/mtproto-client.c index 27034ef..944d05a 100644 --- a/mtproto-client.c +++ b/mtproto-client.c @@ -701,7 +701,7 @@ void fetch_seq (void) { int x = fetch_int (); if (x > seq + 1) { logprintf ("Hole in seq: seq = %d, x = %d\n", seq, x); - do_get_difference (); + //do_get_difference (); //seq = x; } else if (x == seq + 1) { seq = x;