Mercurial > pidgin.yaz
diff libpurple/protocols/mxit/mxit.c @ 29779:de1aec9b9368
Display the "not-authorized" emblem if the MXit contact's subscription state
is not Both (ie, Pending, Rejected or Deleted).
author | andrew.victor@mxit.com |
---|---|
date | Mon, 18 Jan 2010 20:40:41 +0000 |
parents | 259bbfb423d4 |
children | 81ea740f92a4 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/mxit.c Wed Dec 23 07:47:14 2009 +0000 +++ b/libpurple/protocols/mxit/mxit.c Mon Jan 18 20:40:41 2010 +0000 @@ -263,6 +263,10 @@ if ( !contact ) return NULL; + /* subscription state is Pending, Rejected or Deleted */ + if ( contact->subtype != MXIT_SUBTYPE_BOTH ) + return "not-authorized"; + switch ( contact-> type ) { case MXIT_TYPE_JABBER : /* external contacts via MXit */ case MXIT_TYPE_MSN :