Mercurial > pidgin
diff libpurple/protocols/msnp9/switchboard.c @ 22043:23fef20a0ef2
Use a unique chat id across all sessions for multi-user chats, probably
fixes the chat-reuse issues discussed on devel@pidgin.im. I might test this
some time.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 08 Jan 2008 03:46:41 +0000 |
parents | a07cfce78345 |
children | 3225c99785b8 |
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/switchboard.c Tue Jan 08 03:28:48 2008 +0000 +++ b/libpurple/protocols/msnp9/switchboard.c Tue Jan 08 03:46:41 2008 +0000 @@ -166,6 +166,14 @@ return swboard->session_id; } +int +msn_switchboard_get_chat_id(void) +{ + static int chat_id = 1; + + return chat_id++; +} + void msn_switchboard_set_invited(MsnSwitchBoard *swboard, gboolean invited) { @@ -252,7 +260,7 @@ purple_conversation_destroy(swboard->conv); #endif - swboard->chat_id = cmdproc->session->conv_seq++; + swboard->chat_id = msn_switchboard_get_chat_id(); swboard->flag |= MSN_SB_FLAG_IM; swboard->conv = serv_got_joined_chat(account->gc, swboard->chat_id,