<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Uday,<br>
<br>
Sorry for the very belated reply, and for the lazy top-posting. This
mail's been in my TODO queue for too long. :)<br>
<br>
Your analysis of the problem is correct! The right fix here would be to
add API to libpurple so that you can decline a subscription request
with a message, rather than the Yahoo! prpl having to pop up a dialog
to ask for a message. This API would also be useful on other protocols,
like MSN, and it would allow Pidgin and other “normal” libpurple UIs to
present much better UI.<br>
<br>
No-one's working on this at the moment. I'd be happy to give pointers,
and help shepherd the resulting patches into libpurple. :)<br>
<br>
(I did start a Haze branch that made it always respond to
purple_request_*() operations, picking a callback arbitrarily, but I
wasn't really happy with it...)<br>
<br>
On 13/10/10 11:53, <a class="moz-txt-link-abbreviated" href="mailto:udayjandhyala@gmail.com">udayjandhyala@gmail.com</a> wrote:
<blockquote
 cite="mid:AANLkTiknofkEkTM3crwyS2tn7UXgUSdz+HT2Ev-jcoGb@mail.gmail.com"
 type="cite">Greetings!
  <div><br>
  </div>
  <div><b>Problem statement :</b></div>
  <div><br>
  </div>
  <div>If there is an incoming friendship request from a Yahoo ID, to
our Signed in Yahoo account on Empathy client,</div>
  <div>On 'Denying' the request, the alert disappears. However, if we
logout and login again, the request reappears.</div>
  <div><br>
  </div>
  <div>Has anyone else observed this issue ? If no, then am confused :)</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><b>My understanding :</b><br>
  <br>
In libpurple to deny an incoming friendship request, below procedure
has been observed :<br>
  <br>
1) Compilation of telepathy-haze needs to be done with the below option
:<br>
   " --enable-leaky-request-stubs "<br>
  <br>
This would set 'request ui ops' by calling the function
purple_request_set_ui_ops ( ), in telepathy-haze-0.3.4/src/main.c
within the function haze_ui_init ( )<br>
  <br>
  <br>
When the friendship request is denied :<br>
  <br>
2) A call is made to yahoo_buddy_add_deny_reason_cb which will trigger
UI to show an additional alert, so that user can enter his 'reason
string'<br>
    for denying the friendship request<br>
  <br>
3) Currently, in Empathy, this alert never comes up, since it is not
communicated from 'telepathy-haze' to the Empathy client, through any
dbus call<br>
    (In Pidgin, this alert is being shown)<br>
  <br>
4) If somehow, we make sure (by a tweak), that a callback is called for
either 'Ok' or 'Cancel' (just like in the case of Pidgin),<br>
    then in the final callback, only 'DEBUG' print statements are
placed.<br>
  <br>
5) There needs to be an additional call, to actually send a request to
Yahoo server, preparing a packet with appropriate yahoo protocol syntax<br>
    which looks something like this :<br>
  <br>
In file telepathy-haze-0.3.4/src/request.c , in function
haze_request_input ( ) :<br>
  <br>
&lt;after the DEBUG statements, place the below line&gt;<br>
( (PurpleRequestInputCb) ok_cb) (user_data, "&lt;Reason for denying,
given by User&gt;");<br>
  <br>
  <br>
Doing the above, has solved the problem for me. Can anyone suggest if
there is a better way ? Or this bug fix is already<br>
underway for the next haze release ? </div>
  <div><br>
  </div>
  <div>Kindly do let me know, if there is any work around already in
place, for Empathy later releases. Am using Empathy 2.30.1.1, which is
pretty old, </div>
  <div>coming with Ubuntu Lucid<br>
  <br>
Thanks in advance!<br>
Best wishes</div>
  <div>Uday Kiran</div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
telepathy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/telepathy">http://lists.freedesktop.org/mailman/listinfo/telepathy</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Will
</pre>
</body>
</html>