pidgin.mxit: b88c4f72: Display the "not-authorized" emblem if t...
andrew.victor at mxit.com
andrew.victor at mxit.com
Thu Feb 11 01:56:24 EST 2010
-----------------------------------------------------------------
Revision: b88c4f72aa3d87a41d0ae232164801f4e1aeca1a
Ancestor: 8f0a3e68547fbc66188357edbf6694bd8dd2d557
Author: andrew.victor at mxit.com
Date: 2010-01-18T20:40:41
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/b88c4f72aa3d87a41d0ae232164801f4e1aeca1a
Modified files:
libpurple/protocols/mxit/mxit.c
ChangeLog:
Display the "not-authorized" emblem if the MXit contact's subscription state
is not Both (ie, Pending, Rejected or Deleted).
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/mxit.c b8a2aadcdb394ae3c1616ef07ddeba1e7aedbc64
+++ libpurple/protocols/mxit/mxit.c c024c1270ddc7c79dc3c293baba14764028d41fd
@@ -263,6 +263,10 @@ static const char* mxit_list_emblem( Pur
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 :
More information about the Commits
mailing list