changeset 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 ac6c2dda0eae
children 72b059116c82
files libpurple/protocols/mxit/mxit.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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 :