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><after the DEBUG statements, place the below line><br>( (PurpleRequestInputCb) ok_cb) (user_data, "<Reason for denying, given by User>");<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>