Fixed bug with new message marked as read
This commit is contained in:
parent
6893fca713
commit
e2cc2ed7cc
@ -461,6 +461,7 @@ void do_send_message (union user_chat *U, const char *msg) {
|
|||||||
memset (M, 0, sizeof (*M));
|
memset (M, 0, sizeof (*M));
|
||||||
M->from_id = our_id;
|
M->from_id = our_id;
|
||||||
M->to_id = U->id;
|
M->to_id = U->id;
|
||||||
|
M->unread = 1;
|
||||||
if (U->id < 0) {
|
if (U->id < 0) {
|
||||||
out_int (CODE_input_peer_chat);
|
out_int (CODE_input_peer_chat);
|
||||||
out_int (-U->id);
|
out_int (-U->id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user