# HG changeset patch # User andrew.victor@mxit.com # Date 1263847241 0 # Node ID de1aec9b9368e161e36808ad912e91763817408a # Parent ac6c2dda0eae74483b7898b954f9e6c40af45b06 Display the "not-authorized" emblem if the MXit contact's subscription state is not Both (ie, Pending, Rejected or Deleted). diff -r ac6c2dda0eae -r de1aec9b9368 libpurple/protocols/mxit/mxit.c --- 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 :