Fixed bug with new message marked as read

This commit is contained in:
Vysheng 2013-10-21 23:47:05 +04:00
parent 6893fca713
commit e2cc2ed7cc

View File

@ -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);