Mercurial > pidgin
diff libpurple/protocols/mxit/profile.c @ 31500:80bbed4cb649
* extended the profile information shown for pending invites
- avatar image
- status message
- invite image
author | pieter.loubser@mxit.com |
---|---|
date | Fri, 01 Apr 2011 13:50:10 +0000 |
parents | acd92b7d8511 |
children | efed7d3c5574 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/profile.c Thu Mar 31 20:15:18 2011 +0000 +++ b/libpurple/protocols/mxit/profile.c Fri Apr 01 13:50:10 2011 +0000 @@ -214,6 +214,26 @@ /* hidden number */ purple_notify_user_info_add_pair( info, _( "Hidden Number" ), ( contact->flags & MXIT_CFLAG_HIDDEN ) ? _( "Yes" ) : _( "No" ) ); } + else { + /* this is an invite */ + contact = get_mxit_invite_contact( session, username ); + if ( contact ) { + /* invite found */ + + if ( contact->msg ) + purple_notify_user_info_add_pair( info, _( "Invite Message" ), contact->msg ); + + if ( contact->imgid ) { + /* this invite has a avatar */ + char* img_text; + img_text = g_strdup_printf( "<img id='%d'>", contact->imgid ); + purple_notify_user_info_add_pair( info, _( "Photo" ), img_text ); + } + + if ( contact->statusMsg ) + purple_notify_user_info_add_pair( info, _( "Status Message" ), contact->statusMsg ); + } + } purple_notify_userinfo( session->con, username, info, NULL, NULL ); purple_notify_user_info_destroy( info );