mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
xmpp: check for error presences in AvatarManager
This commit is contained in:
@@ -73,6 +73,11 @@ AvatarManager::fetchVCard( const QString& jid )
|
|||||||
void
|
void
|
||||||
AvatarManager::onNewPresence( const Jreen::Presence& presence )
|
AvatarManager::onNewPresence( const Jreen::Presence& presence )
|
||||||
{
|
{
|
||||||
|
if ( presence.error() )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Jreen::VCardUpdate::Ptr update = presence.payload<Jreen::VCardUpdate>();
|
Jreen::VCardUpdate::Ptr update = presence.payload<Jreen::VCardUpdate>();
|
||||||
if ( update )
|
if ( update )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user