diff options
author | Eion Robb <eion@robbmob.com> | 2015-10-08 01:29:36 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2015-10-08 01:29:36 +0300 |
commit | 256e64d82aa27dca979ae09409552a6a1c3998ac (patch) | |
tree | a4630b4214603da5364fb47f4a748d31049e1b4b | |
parent | b92a05c67e603d30d3abaa441aa1b81bec9753c6 (diff) |
SkypeWeb : Rejoin chats when account reconnects
Should fix issue #332
-rw-r--r-- | skypeweb/libskypeweb.c | 2 | ||||
-rw-r--r-- | skypeweb/libskypeweb.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/skypeweb/libskypeweb.c b/skypeweb/libskypeweb.c index 9c02313..01b3203 100644 --- a/skypeweb/libskypeweb.c +++ b/skypeweb/libskypeweb.c @@ -205,7 +205,7 @@ skypeweb_join_chat(PurpleConnection *pc, GHashTable *data) }
chatconv = purple_conversations_find_chat_with_account(chatname, sa->account);
- if (chatconv != NULL) {
+ if (chatconv != NULL && !purple_chat_conversation_has_left(chatconv)) {
purple_conversation_present(PURPLE_CONVERSATION(chatconv));
return;
}
diff --git a/skypeweb/libskypeweb.h b/skypeweb/libskypeweb.h index 921fdf6..ebc3471 100644 --- a/skypeweb/libskypeweb.h +++ b/skypeweb/libskypeweb.h @@ -139,6 +139,7 @@ #define purple_chat_conversation_find_user(chat, name) purple_conv_chat_cb_find(chat, name) #define purple_chat_conversation_add_user purple_conv_chat_add_user #define purple_chat_conversation_leave purple_conv_chat_left + #define purple_chat_conversation_has_left purple_conv_chat_has_left #define purple_chat_conversation_add_user purple_conv_chat_add_user #define purple_chat_conversation_remove_user purple_conv_chat_remove_user #define purple_chat_conversation_clear_users purple_conv_chat_clear_users |