/cpw/tomkiewicz/gg11: b5341ea06a72: Gadu-Gadu: fix conferences u...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Wed Sep 19 08:40:25 EDT 2012


Changeset: b5341ea06a7267c07ce31f12906063a15ab174f9
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-09-19 14:40 +0200
Branch:	 default
URL: http://hg.pidgin.im/cpw/tomkiewicz/gg11/rev/b5341ea06a72

Description:

Gadu-Gadu: fix conferences used together with multilogon

diffstat:

 libpurple/protocols/gg/message-prpl.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (21 lines):

diff --git a/libpurple/protocols/gg/message-prpl.c b/libpurple/protocols/gg/message-prpl.c
--- a/libpurple/protocols/gg/message-prpl.c
+++ b/libpurple/protocols/gg/message-prpl.c
@@ -270,7 +270,16 @@ void ggp_message_got_multilogon(PurpleCo
 	msg->gc = gc;
 	msg->time = ev->time;
 	msg->user = ev->sender; /* not really a sender*/
-	msg->type = GGP_MESSAGE_GOT_TYPE_MULTILOGON;
+
+	if (ev->chat_id != 0)
+	{
+		msg->type = GGP_MESSAGE_GOT_TYPE_CHAT;
+		msg->chat_id = ev->chat_id;
+	}
+	else
+	{
+		msg->type = GGP_MESSAGE_GOT_TYPE_MULTILOGON;
+	}
 
 	ggp_message_format_from_gg(msg, ev->xhtml_message);
 	if (ggp_message_request_images(gc, msg))



More information about the Commits mailing list