| 129 if (session->notification != NULL) |
129 if (session->notification != NULL) |
| 130 msn_notification_disconnect(session->notification); |
130 msn_notification_disconnect(session->notification); |
| 131 } |
131 } |
| 132 |
132 |
| 133 /* TODO: This must go away when conversation is redesigned */ |
133 /* TODO: This must go away when conversation is redesigned */ |
| 134 |
|
| 135 MsnSwitchBoard * |
134 MsnSwitchBoard * |
| 136 msn_session_find_swboard(MsnSession *session, const char *username) |
135 msn_session_find_swboard(MsnSession *session, const char *username) |
| 137 { |
136 { |
| 138 GList *l; |
137 GList *l; |
| 139 |
138 |
| 183 swboard = msn_session_find_swboard(session, username); |
182 swboard = msn_session_find_swboard(session, username); |
| 184 |
183 |
| 185 if (swboard == NULL) |
184 if (swboard == NULL) |
| 186 { |
185 { |
| 187 swboard = msn_switchboard_new(session); |
186 swboard = msn_switchboard_new(session); |
| |
187 swboard->im_user = g_strdup(username); |
| 188 msn_switchboard_request(swboard); |
188 msn_switchboard_request(swboard); |
| 189 msn_switchboard_request_add_user(swboard, username); |
189 msn_switchboard_request_add_user(swboard, username); |
| 190 swboard->im_user = g_strdup(username); |
|
| 191 } |
190 } |
| 192 |
191 |
| 193 return swboard; |
192 return swboard; |
| 194 } |
193 } |
| 195 |
194 |