Skip to content

Commit

Permalink
VERSION: updated to 5727ffb502c7
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeboski committed Aug 21, 2015
1 parent 68db480 commit c9cbfbd
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 23 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
purple-facebook-5727ffb502c7 (2015-08-21):
- Added missing g_get_real_time() compat function
- Display images and stickers in-line
- Fetch URLs for all message attachments
- Fixed the group checking on NULL buddies
- Fixed memory leak with HTTP error checking
- Ignore canceling HTTP requests
- Minor code refactoring

purple-facebook-7201f07fe8f7 (2015-08-19):
- Display the thread URL for videos
- Fixed memory leak with contact parsing
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST_VOIDS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include/blistnodetypes.h
include/buddylist.h
include/conversations.h
include/conversationtypes.h
include/image.h
include/image-store.h
include/message.h
include/plugins.h
include/presence.h
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7201f07fe8f7
5727ffb502c7
12 changes: 9 additions & 3 deletions include/purple-compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
#ifndef _PURPLE_COMPAT_H_
#define _PURPLE_COMPAT_H_

#include "accountopt.h"
#include "connection.h"
#include "debug.h"
#include "imgstore.h"
#include "notify.h"
#include "prpl.h"
#include "request.h"
Expand All @@ -39,6 +37,7 @@ struct _PurpleMessage

#define PurpleChatConversation PurpleConvChat
#define PurpleConversationUpdateType PurpleConvUpdateType
#define PurpleImage void
#define PurpleIMConversation PurpleConvIm
#define PurpleIMTypingState PurpleTypingState
#define PurpleProtocol void
Expand All @@ -51,6 +50,7 @@ struct _PurpleMessage
#define PURPLE_CONVERSATION_UPDATE_UNSEEN PURPLE_CONV_UPDATE_UNSEEN
#define PURPLE_IM_NOT_TYPING PURPLE_NOT_TYPING
#define PURPLE_IM_TYPING PURPLE_TYPING
#define PURPLE_IMAGE_STORE_PROTOCOL ""

#define PURPLE_CHAT_CONVERSATION purple_conversation_get_chat_data
#define PURPLE_CONVERSATION(c) ((c)->conv)
Expand Down Expand Up @@ -113,6 +113,12 @@ struct _PurpleMessage
purple_conversation_new(PURPLE_CONV_TYPE_IM, a, n) \
)

#define purple_image_new_from_data(d, s) \
GUINT_TO_POINTER(purple_imgstore_add_with_id(d, s, NULL))

#define purple_image_store_add_weak(i) \
GPOINTER_TO_UINT(i)

#define purple_message_new_outgoing(n, t, f) \
((PurpleMessage *) &((PurpleMessage) {n, t, f}))

Expand Down
39 changes: 24 additions & 15 deletions patches/02-plugin.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c Tue Aug 18 19:58:40 2015 -0400
+++ b/libpurple/protocols/facebook/facebook.c Tue Aug 18 23:57:23 2015 -0400
@@ -756,7 +756,7 @@
diff -r 5727ffb502c7 libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c Fri Aug 21 01:18:30 2015 -0400
+++ b/libpurple/protocols/facebook/facebook.c Fri Aug 21 11:51:33 2015 -0400
@@ -436,7 +436,7 @@
id = purple_image_store_add_weak(pimg);

g_free(msg->text);
- msg->text = g_strdup_printf("<img src=\""
+ msg->text = g_strdup_printf("<img id=\""
PURPLE_IMAGE_STORE_PROTOCOL
"%u\">", id);
msg->flags |= FB_API_MESSAGE_FLAG_DONE;
@@ -815,7 +815,7 @@
GSList *select = NULL;
PurpleConnection *gc;

Expand All @@ -10,7 +19,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
return;
}

@@ -949,7 +949,7 @@
@@ -1008,7 +1008,7 @@
PurpleConnection *gc;
PurpleMenuAction *act;

Expand All @@ -19,7 +28,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
return NULL;
}

@@ -997,7 +997,8 @@
@@ -1056,7 +1056,8 @@
}

static gint
Expand All @@ -29,7 +38,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
{
const gchar *name;
const gchar *text;
@@ -1006,6 +1007,8 @@
@@ -1065,6 +1066,8 @@
FbId uid;
gchar *sext;

Expand All @@ -38,7 +47,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
fata = purple_connection_get_protocol_data(gc);
api = fb_data_get_api(fata);

@@ -1144,7 +1147,8 @@
@@ -1203,7 +1206,8 @@
}

static gint
Expand All @@ -48,7 +57,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
{
const gchar *name;
const gchar *text;
@@ -1155,6 +1159,8 @@
@@ -1214,6 +1218,8 @@
PurpleAccount *acct;
PurpleChatConversation *chat;

Expand All @@ -57,7 +66,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
acct = purple_connection_get_account(gc);
fata = purple_connection_get_protocol_data(gc);
api = fb_data_get_api(fata);
@@ -1328,99 +1334,6 @@
@@ -1387,99 +1393,6 @@
}

static void
Expand Down Expand Up @@ -157,7 +166,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
fb_cmds_register(void)
{
PurpleCmdId id;
@@ -1432,13 +1345,13 @@
@@ -1491,13 +1404,13 @@
g_return_if_fail(fb_cmds == NULL);

id = purple_cmd_register("kick", "s", PURPLE_CMD_P_PROTOCOL, cflags,
Expand All @@ -173,7 +182,7 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
_("leave: Leave the chat"),
NULL);
fb_cmds = g_slist_prepend(fb_cmds, GUINT_TO_POINTER(id));
@@ -1457,43 +1370,102 @@
@@ -1516,43 +1429,102 @@
g_slist_free_full(fb_cmds, fb_cmds_unregister_free);
}

Expand Down Expand Up @@ -306,9 +315,9 @@ diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.c
+ inited = TRUE;
+ return purple_plugin_register(plugin);
+}
diff -r 7201f07fe8f7 libpurple/protocols/facebook/facebook.h
--- a/libpurple/protocols/facebook/facebook.h Tue Aug 18 19:58:40 2015 -0400
+++ b/libpurple/protocols/facebook/facebook.h Tue Aug 18 23:57:23 2015 -0400
diff -r 5727ffb502c7 libpurple/protocols/facebook/facebook.h
--- a/libpurple/protocols/facebook/facebook.h Fri Aug 21 01:18:30 2015 -0400
+++ b/libpurple/protocols/facebook/facebook.h Fri Aug 21 11:51:33 2015 -0400
@@ -22,24 +22,8 @@
#ifndef _FACEBOOK_H_
#define _FACEBOOK_H_
Expand Down
8 changes: 4 additions & 4 deletions patches/03-http-leaks.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff -r b9aca76e0549 libpurple/http.c
--- a/libpurple/http.c Wed Jun 24 08:52:47 2015 -0400
+++ b/libpurple/http.c Wed Jun 24 08:59:52 2015 -0400
@@ -2453,6 +2453,8 @@
diff -r 5727ffb502c7 libpurple/http.c
--- a/libpurple/http.c Fri Aug 21 01:18:30 2015 -0400
+++ b/libpurple/http.c Fri Aug 21 11:00:14 2015 -0400
@@ -2460,6 +2460,8 @@
purple_http_cookie_jar_unref(request->cookie_jar);
purple_http_keepalive_pool_unref(request->keepalive_pool);
g_free(request->url);
Expand Down

0 comments on commit c9cbfbd

Please sign in to comment.