From 0c06c63dc8e6a9c8819e01b93c9bd725a8641a51 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Tue, 8 Sep 2015 22:28:24 +0200 Subject: [PATCH] Fix support for old glib versions --- tgp-msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgp-msg.c b/tgp-msg.c index 5f1342b..76a606d 100644 --- a/tgp-msg.c +++ b/tgp-msg.c @@ -659,7 +659,7 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M) { ++ C->pending; tgl_do_get_chat_info (TLS, M->to_id, FALSE, tgp_msg_on_loaded_chat_full, C); - g_hash_table_add (conn->pending_chat_info, to_ptr); + g_hash_table_replace (conn->pending_chat_info, to_ptr, to_ptr); } } }