updated tgl
This commit is contained in:
parent
d67c52184e
commit
8fe867943d
@ -2080,14 +2080,12 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void print_msg_gw (struct tgl_state *TLSR, void *extra, int success, struct tgl_message *M) {
|
||||
|
2
tgl
2
tgl
@ -1 +1 @@
|
||||
Subproject commit 839885202494fb66fadad80e7c327000dc92b174
|
||||
Subproject commit 1cdaac625b8af7312b909d8cbb655ec2807543c5
|
Loading…
x
Reference in New Issue
Block a user