soc.2009.telepathy: f1674044: Fixed accidental code deletion

sttwister at soc.pidgin.im sttwister at soc.pidgin.im
Tue Jun 2 15:20:38 EDT 2009


-----------------------------------------------------------------
Revision: f167404479292de9ed542f100d29c398b0d5853a
Ancestor: 8f069c8cb3e44776b9c7e5027ffbf131039171fc
Author: sttwister at soc.pidgin.im
Date: 2009-06-02T17:32:19
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/f167404479292de9ed542f100d29c398b0d5853a

Modified files:
        libpurple/protocols/telepathy/telepathy.c

ChangeLog: 

Fixed accidental code deletion

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c	cbdfd47447b8388c53012195e676484d228bdfec
+++ libpurple/protocols/telepathy/telepathy.c	4dcd78f9ae47e45cdc0488e1a761c3f9ede9aaaf
@@ -837,6 +837,13 @@ telepathy_send_im (PurpleConnection *gc,
 	}
 	else
 	{
+		/* if this is the first message, we need to create the channel */
+		GHashTable *map = tp_asv_new (
+			TP_IFACE_CHANNEL ".ChannelType", G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
+			TP_IFACE_CHANNEL ".TargetHandleType", G_TYPE_UINT, TP_HANDLE_TYPE_CONTACT,
+			TP_IFACE_CHANNEL ".TargetID", G_TYPE_STRING, who,
+			NULL);
+
 		tp_channel = g_new0(telepathy_text_channel, 1);
 		g_hash_table_insert(data->text_Channels, g_strdup(who), tp_channel);
 


More information about the Commits mailing list