/soc/2015/nakulgulati/main: 11970da7b7e7: hangouts: channel long...

[email protected]
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 11970da7b7e7eb44d55e607b8e6b55fc902ed1f4
Author:	 Nakul Gulati
Date:	 2015-08-22 04:27 +0530
Branch:	 hangouts
URL: https://hg.pidgin.im/soc/2015/nakulgulati/main/rev/11970da7b7e7

Description:

hangouts: channel long poll

diffstat:

 libpurple/protocols/hangouts/api.c     |  10 ++--------
 libpurple/protocols/hangouts/channel.c |   2 --
 2 files changed, 2 insertions(+), 10 deletions(-)

diffs (56 lines):

diff --git a/libpurple/protocols/hangouts/api.c b/libpurple/protocols/hangouts/api.c
--- a/libpurple/protocols/hangouts/api.c
+++ b/libpurple/protocols/hangouts/api.c
@@ -144,12 +144,9 @@ hangouts_api_init (HangoutsApi *api)
 static void
 hangouts_api_cb_connect (HangoutsChannel *channel, gpointer *data)
 {
-  /*HangoutsApi *api = data;
-  gchar *str = hangouts_api_get_request_header (api);
-  purple_debug_misc ("hangouts-api", "Results: %s\n", str);*/
   if (!hangouts_channel_is_subscribed (channel))
     {
-      //hangouts_channel_subscribe (channel);
+      hangouts_channel_subscribe (channel);
     }
 }
 
@@ -160,7 +157,6 @@ hangouts_api_cb_subscribe (HangoutsChann
 
   api = data;
   purple_debug_misc ("hangouts-api", "channel subscribed");
-  //hangouts_api_syncallevents (api);
 }
 
 HangoutsApi *
@@ -196,10 +192,8 @@ hangouts_api_set_client_id (PurpleConnec
   string = hangouts_json_node_get_str (node, "$[0][1][0]['p']", NULL);
   node = hangouts_json_node_new (string, -1, FALSE);
 
-  /*string = hangouts_json_node_get_str (node, "$['3']['2']", NULL);*/
+  string = hangouts_json_node_get_str (node, "$['3']['2']", NULL);
 
-  /*gchar *str = hangouts_api_get_request_header (api);*/
-  purple_debug_misc ("hangouts-api", "Results: %s\n", string);
 }
 
 void
diff --git a/libpurple/protocols/hangouts/channel.c b/libpurple/protocols/hangouts/channel.c
--- a/libpurple/protocols/hangouts/channel.c
+++ b/libpurple/protocols/hangouts/channel.c
@@ -194,7 +194,6 @@ hangouts_channel_long_poll_cb (PurpleHtt
 {
   HangoutsChannel *channel;
   const gchar *raw = purple_http_response_get_data(response,NULL);
-  purple_debug_misc("hangouts-channel", "long poll res: %s", raw);
 
   channel = user_data;
 
@@ -232,7 +231,6 @@ hangouts_channel_long_poll_watcher (Purp
       hangouts_api_set_client_id(priv->gc, chunk);
   }
 
-  purple_debug_misc("hangouts-longpoll", "chunk: %s", chunk);
 }
 
 void

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.