| 195 |
195 |
| 196 return FALSE; |
196 return FALSE; |
| 197 } |
197 } |
| 198 |
198 |
| 199 static void |
199 static void |
| 200 im_sent_im(PurpleAccount *account, const char *receiver, const char *message) |
200 im_sent_im(PurpleAccount *account, PurpleMessage *msg, gpointer _unused) |
| 201 { |
201 { |
| 202 PurpleIMConversation *im = NULL; |
202 PurpleIMConversation *im = NULL; |
| 203 im = purple_conversations_find_im_with_account(receiver, account); |
203 im = purple_conversations_find_im_with_account( |
| |
204 purple_message_get_who(msg), account); |
| 204 unalert(PURPLE_CONVERSATION(im)); |
205 unalert(PURPLE_CONVERSATION(im)); |
| 205 } |
206 } |
| 206 |
207 |
| 207 static void |
208 static void |
| 208 chat_sent_im(PurpleAccount *account, const char *message, int id) |
209 chat_sent_im(PurpleAccount *account, PurpleMessage *msg, int id) |
| 209 { |
210 { |
| 210 PurpleChatConversation *chat = NULL; |
211 PurpleChatConversation *chat = NULL; |
| 211 chat = purple_conversations_find_chat(purple_account_get_connection(account), id); |
212 chat = purple_conversations_find_chat(purple_account_get_connection(account), id); |
| 212 unalert(PURPLE_CONVERSATION(chat)); |
213 unalert(PURPLE_CONVERSATION(chat)); |
| 213 } |
214 } |