[Pidgin] #12000: facebook does NOT support offline messaging
Pidgin
trac at pidgin.im
Tue Dec 14 07:35:42 EST 2010
#12000: facebook does NOT support offline messaging
------------------------------+---------------------------------------------
Reporter: kermit | Owner: deryni
Type: defect | Status: closed
Milestone: | Component: XMPP
Version: 2.7.0 | Resolution:
Keywords: facebook offline |
------------------------------+---------------------------------------------
Comment(by NPetr):
Hello, I can confirm this issue. And maybe it has relationship with
http://developer.pidgin.im/ticket/7204. In the debug log it says:
"offlinemsg: Account "kermit4@…/Pidgin" supports offline messages" as
kermit reported. But facebook does not support offline messaging in spite
of it uses XMPP. Workaround is send a message through right click from
buddylist - Buddy Pounce > send message when contact is online.
I guess that the patch of offlinemsg.c fix the issue. I can't code in C
but the PHP idea is:
{{{
if (purple_account_supports_offline_message(account, buddy))
{
$findme = '@chat.facebook.com';
$pos = strpos($mystring, $findme);
if ($pos === false) {
echo "The string '$findme' was not found in the string '$mystring'";
purple_debug_info("offlinemsg", "Account \"%s\" supports offline
messages.\n",
purple_account_get_username(account));
return;
} else {
echo "The string '$findme' was found in the string '$mystring'";
echo " and exists at position $pos";
}
}
}}}
How it will be written in C language code?
--
Ticket URL: <http://developer.pidgin.im/ticket/12000#comment:4>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list