Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-11-18 03:19:40 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-11-18 03:19:40 +0300
commit81cf092554120c04dad6b705913c986024d28c9a (patch)
tree45f7c891fc216a3de7a3a04865d5d0fda1aa9b3c /tgp-blist.c
parentb721e8d2173ca952e6de092b0a764a66a1f9d630 (diff)
Fix adding foreign buddy
Fix user info and user status not being correctly fetched.
Diffstat (limited to 'tgp-blist.c')
-rw-r--r--tgp-blist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tgp-blist.c b/tgp-blist.c
index 620fcdd..8847b3e 100644
--- a/tgp-blist.c
+++ b/tgp-blist.c
@@ -95,6 +95,7 @@ tgl_peer_id_t tgp_blist_buddy_get_id (PurpleBuddy *buddy) {
tgl_peer_t *tgp_blist_buddy_get_peer (PurpleBuddy *buddy) {
if (! tgp_blist_buddy_has_id (buddy)) {
+ g_warn_if_reached();
return NULL;
}
return tgl_peer_get (pbn_get_conn (&buddy->node)->TLS, tgp_blist_buddy_get_id (buddy));