Commit 8fe86794 authored by V V's avatar V V

updated tgl

parent d67c5218
...@@ -2080,12 +2080,10 @@ void print_msg_list_gw (struct tgl_state *TLSR, void *extra, int success, int nu ...@@ -2080,12 +2080,10 @@ void print_msg_list_gw (struct tgl_state *TLSR, void *extra, int success, int nu
void print_msg_list_history_gw (struct tgl_state *TLSR, void *extra, int success, int num, struct tgl_message *ML[]) { void print_msg_list_history_gw (struct tgl_state *TLSR, void *extra, int success, int num, struct tgl_message *ML[]) {
print_msg_list_gw (TLSR, extra, success, num, ML); print_msg_list_gw (TLSR, extra, success, num, ML);
if (num > 0) { if (num > 0) {
if (tgl_get_peer_type (ML[0]->to_id) != TGL_PEER_CHANNEL) { if (tgl_get_peer_type (ML[0]->to_id) != TGL_PEER_USER || tgl_get_peer_id (ML[0]->to_id) != TLS->our_id) {
if (tgl_get_peer_type (ML[0]->to_id) != TGL_PEER_USER || tgl_get_peer_id (ML[0]->to_id) != TLS->our_id) { tgl_do_messages_mark_read (TLS, ML[0]->to_id, ML[0]->id, 0, NULL, NULL);
tgl_do_messages_mark_read (TLS, ML[0]->to_id, ML[0]->id, 0, NULL, NULL); } else {
} else { tgl_do_messages_mark_read (TLS, ML[0]->from_id, ML[0]->id, 0, NULL, NULL);
tgl_do_messages_mark_read (TLS, ML[0]->from_id, ML[0]->id, 0, NULL, NULL);
}
} }
} }
} }
......
Subproject commit 839885202494fb66fadad80e7c327000dc92b174 Subproject commit 1cdaac625b8af7312b909d8cbb655ec2807543c5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment