diff libpurple/protocols/jabber/message.c @ 29786:b6dda7d483a2

Added an "ephemeral" argument when creating local data objects (given a CID). This will cause them to be destroyed automatically when receiving a get request To be use for short-lived "one time" data, such as file transfer thumbnails
author Marcus Lundblad <ml@update.uu.se>
date Mon, 29 Jun 2009 20:44:45 +0000
parents 01f1929d0936
children 8b452039c329
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Thu Jun 25 22:25:23 2009 +0000
+++ b/libpurple/protocols/jabber/message.c	Mon Jun 29 20:44:45 2009 +0000
@@ -994,7 +994,7 @@
 					JabberData *new_data =
 						jabber_data_create_from_data(purple_imgstore_get_data(image),
 							purple_imgstore_get_size(image),
-							jabber_message_get_mimetype_from_ext(ext), js);
+							jabber_message_get_mimetype_from_ext(ext), FALSE, js);
 					purple_debug_info("jabber",
 						"cache local smiley alt = %s, cid = %s\n",
 						shortcut, jabber_data_get_cid(new_data));