updated tgl

This commit is contained in:
V V 2015-09-25 20:20:00 +03:00
parent d67c52184e
commit 8fe867943d
2 changed files with 5 additions and 7 deletions

View File

@ -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[]) {
print_msg_list_gw (TLSR, extra, success, num, ML);
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) {
tgl_do_messages_mark_read (TLS, ML[0]->to_id, ML[0]->id, 0, NULL, NULL);
} else {
tgl_do_messages_mark_read (TLS, ML[0]->from_id, ML[0]->id, 0, NULL, NULL);
}
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);
} else {
tgl_do_messages_mark_read (TLS, ML[0]->from_id, ML[0]->id, 0, NULL, NULL);
}
}
}

2
tgl

@ -1 +1 @@
Subproject commit 839885202494fb66fadad80e7c327000dc92b174
Subproject commit 1cdaac625b8af7312b909d8cbb655ec2807543c5