comparison libpurple/protocols/msnp9/msn.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 f9738214f308
children eab7d03edfcb
comparison
equal deleted inserted replaced
22042:7553cbc95504 22043:23fef20a0ef2
433 swboard = msn_switchboard_new(session); 433 swboard = msn_switchboard_new(session);
434 msn_switchboard_request(swboard); 434 msn_switchboard_request(swboard);
435 msn_switchboard_request_add_user(swboard, buddy->name); 435 msn_switchboard_request_add_user(swboard, buddy->name);
436 436
437 /* TODO: This might move somewhere else, after USR might be */ 437 /* TODO: This might move somewhere else, after USR might be */
438 swboard->chat_id = session->conv_seq++; 438 swboard->chat_id = msn_switchboard_get_chat_id();
439 swboard->conv = serv_got_joined_chat(gc, swboard->chat_id, "MSN Chat"); 439 swboard->conv = serv_got_joined_chat(gc, swboard->chat_id, "MSN Chat");
440 swboard->flag = MSN_SB_FLAG_IM; 440 swboard->flag = MSN_SB_FLAG_IM;
441 441
442 purple_conv_chat_add_user(PURPLE_CONV_CHAT(swboard->conv), 442 purple_conv_chat_add_user(PURPLE_CONV_CHAT(swboard->conv),
443 purple_account_get_username(buddy->account), NULL, PURPLE_CBFLAGS_NONE, TRUE); 443 purple_account_get_username(buddy->account), NULL, PURPLE_CBFLAGS_NONE, TRUE);