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,7 +2080,6 @@ 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 {
@ -2088,7 +2087,6 @@ void print_msg_list_history_gw (struct tgl_state *TLSR, void *extra, int success
} }
} }
} }
}
void print_msg_gw (struct tgl_state *TLSR, void *extra, int success, struct tgl_message *M) { void print_msg_gw (struct tgl_state *TLSR, void *extra, int success, struct tgl_message *M) {
assert (TLS == TLSR); assert (TLS == TLSR);

2
tgl

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