pidgin.mxit: aa839455: Improve searching.

andrew.victor at mxit.com andrew.victor at mxit.com
Mon Apr 18 17:25:44 EDT 2011


----------------------------------------------------------------------
Revision: aa83945596eab8e928a8bddefda63705b3e2d647
Parent:   c62ec50fb7f9c0620329c9bdae08084c7991588d
Author:   andrew.victor at mxit.com
Date:     04/18/11 15:38:21
Branch:   im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/aa83945596eab8e928a8bddefda63705b3e2d647

Changelog: 

Improve searching.


Changes against parent c62ec50fb7f9c0620329c9bdae08084c7991588d

  patched  libpurple/protocols/mxit/actions.c
  patched  libpurple/protocols/mxit/mxit.h

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/actions.c	93bc7be59fdaf6e13515ca7aa2c7b48c388db554
+++ libpurple/protocols/mxit/actions.c	cdd0c52cbda316495e002c2741983adcbf92c00b
@@ -442,9 +442,10 @@ static void mxit_suggested_friends_actio
 	struct MXitSession*		session			= (struct MXitSession*) gc->proto_data;
 	const char*				profilelist[]	= {
 				CP_PROFILE_BIRTHDATE, CP_PROFILE_GENDER, CP_PROFILE_FULLNAME, CP_PROFILE_FIRSTNAME,
-				CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR };
+				CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR,
+				CP_PROFILE_WHEREAMI, CP_PROFILE_ABOUTME };
 
-	mxit_send_suggest_friends( session, 20, ARRAY_SIZE( profilelist ), profilelist );
+	mxit_send_suggest_friends( session, MXIT_SEARCHRESULTS_MAX, ARRAY_SIZE( profilelist ), profilelist );
 }
 
 
@@ -458,9 +459,10 @@ static void mxit_user_search_cb( PurpleC
 	struct MXitSession*		session			= (struct MXitSession*) gc->proto_data;
 	const char*				profilelist[]	= {
 				CP_PROFILE_BIRTHDATE, CP_PROFILE_GENDER, CP_PROFILE_FULLNAME, CP_PROFILE_FIRSTNAME,
-				CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR };
+				CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR,
+				CP_PROFILE_WHEREAMI, CP_PROFILE_ABOUTME };
 
-	mxit_send_suggest_search( session, 20, input, ARRAY_SIZE( profilelist ), profilelist );
+	mxit_send_suggest_search( session, MXIT_SEARCHRESULTS_MAX, input, ARRAY_SIZE( profilelist ), profilelist );
 }
 
 
============================================================
--- libpurple/protocols/mxit/mxit.h	6bb4b286c494a71709d8758ed8eabd435b029f70
+++ libpurple/protocols/mxit/mxit.h	e8c19d3b72f3f5c3dc479431a39cfc1bd9edc9eb
@@ -107,6 +107,10 @@
 #define		MXIT_FLAG_FIRSTROSTER		0x04		/* set to true once the first roster update has been received and processed */
 
 
+/* Maximum number of search results */
+#define		MXIT_SEARCHRESULTS_MAX		30
+
+
 /* define this to enable the link clicking support */
 #define		MXIT_LINK_CLICK
 


More information about the Commits mailing list