/soc/2015/jgeboski/facebook: 051e2725dec4: Added NULL Away state...

James Geboski jgeboski at gmail.com
Fri Jul 24 21:22:48 EDT 2015


Changeset: 051e2725dec4b20b0cf2fc81cf20a4558c35373d
Author:	 James Geboski <jgeboski at gmail.com>
Date:	 2015-07-24 21:22 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/051e2725dec4

Description:

Added NULL Away state for compatibility

diffstat:

 libpurple/protocols/facebook/facebook.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff --git a/libpurple/protocols/facebook/facebook.c b/libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c
+++ b/libpurple/protocols/facebook/facebook.c
@@ -531,11 +531,16 @@ fb_status_types(PurpleAccount *acct)
 	                              NULL, NULL, TRUE);
 	types = g_list_prepend(types, type);
 
+	/* Just a NULL state (as of now) for compatibility */
+	type = purple_status_type_new(PURPLE_STATUS_AWAY,
+	                              NULL, NULL, TRUE);
+	types = g_list_prepend(types, type);
+
 	type = purple_status_type_new(PURPLE_STATUS_OFFLINE,
 	                              NULL, NULL, TRUE);
 	types = g_list_prepend(types, type);
 
-	return types;
+	return g_list_reverse(types);
 }
 
 static const char *



More information about the Commits mailing list