From e2cc2ed7cccc22be73bb5b451b252078ebccf5fe Mon Sep 17 00:00:00 2001 From: Vysheng Date: Mon, 21 Oct 2013 23:47:05 +0400 Subject: [PATCH] Fixed bug with new message marked as read --- queries.c | 1 + 1 file changed, 1 insertion(+) diff --git a/queries.c b/queries.c index 3b5abfe..bdd45c5 100644 --- a/queries.c +++ b/queries.c @@ -461,6 +461,7 @@ void do_send_message (union user_chat *U, const char *msg) { memset (M, 0, sizeof (*M)); M->from_id = our_id; M->to_id = U->id; + M->unread = 1; if (U->id < 0) { out_int (CODE_input_peer_chat); out_int (-U->id);