comparison src/protocols/msn/switchboard.c @ 10612:f0fd35985cb0

[gaim-migrate @ 12067] This should fix using multiple switchboards for a single conversation, which was happening when Gaim didn't initiate the conversation. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 19 Feb 2005 19:46:09 +0000
parents fed2a7c2471d
children fe919915fceb
comparison
equal deleted inserted replaced
10611:41a18bf60ee1 10612:f0fd35985cb0
852 gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT)) 852 gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT))
853 { 853 {
854 serv_got_chat_in(gc, swboard->chat_id, passport, 0, body_final, 854 serv_got_chat_in(gc, swboard->chat_id, passport, 0, body_final,
855 time(NULL)); 855 time(NULL));
856 if (swboard->conv == NULL) 856 if (swboard->conv == NULL)
857 {
857 swboard->conv = gaim_find_chat(gc, swboard->chat_id); 858 swboard->conv = gaim_find_chat(gc, swboard->chat_id);
859 swboard->flag |= MSN_SB_FLAG_IM;
860 }
858 } 861 }
859 else 862 else
860 { 863 {
861 serv_got_im(gc, passport, body_final, 0, time(NULL)); 864 serv_got_im(gc, passport, body_final, 0, time(NULL));
862 if (swboard->conv == NULL) 865 if (swboard->conv == NULL)
866 {
863 swboard->conv = gaim_find_conversation_with_account(GAIM_CONV_IM, 867 swboard->conv = gaim_find_conversation_with_account(GAIM_CONV_IM,
864 passport, gaim_connection_get_account(gc)); 868 passport, gaim_connection_get_account(gc));
869 swboard->flag |= MSN_SB_FLAG_IM;
870 }
865 } 871 }
866 872
867 g_free(body_final); 873 g_free(body_final);
868 } 874 }
869 875