Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2015-10-08 01:29:36 +0300
committerEion Robb <eion@robbmob.com>2015-10-08 01:29:36 +0300
commit256e64d82aa27dca979ae09409552a6a1c3998ac (patch)
treea4630b4214603da5364fb47f4a748d31049e1b4b
parentb92a05c67e603d30d3abaa441aa1b81bec9753c6 (diff)
SkypeWeb : Rejoin chats when account reconnects
Should fix issue #332
-rw-r--r--skypeweb/libskypeweb.c2
-rw-r--r--skypeweb/libskypeweb.h1
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