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-08-03 02:52:22 +0300
committerEion Robb <eion@robbmob.com>2015-08-03 02:52:22 +0300
commit861f1886a8e08076d6489495dba43fb52e436247 (patch)
tree7443f50872bf8a59a065bd7c76e348d45db94bca
parentfbf1776bf5d6bb7d96195ee3239963c8d3b3d884 (diff)
SkypeWeb : Fix for crash when focusing a tab in Pidgin when the account is disconnected
-rw-r--r--skypeweb/libskypeweb.c5
-rw-r--r--skypeweb/skypeweb_messages.c3
2 files changed, 3 insertions, 5 deletions
diff --git a/skypeweb/libskypeweb.c b/skypeweb/libskypeweb.c
index e4702c4..30564bc 100644
--- a/skypeweb/libskypeweb.c
+++ b/skypeweb/libskypeweb.c
@@ -579,11 +579,6 @@ plugin_load(PurplePlugin *plugin
#endif
-
- purple_signal_connect(purple_conversations_get_handle(), "conversation-updated", plugin, PURPLE_CALLBACK(skypeweb_mark_conv_seen), NULL);
-
-
-
//leave
purple_cmd_register("leave", "", PURPLE_CMD_P_PRPL, PURPLE_CMD_FLAG_CHAT |
PURPLE_CMD_FLAG_PRPL_ONLY | PURPLE_CMD_FLAG_ALLOW_WRONG_ARGS,
diff --git a/skypeweb/skypeweb_messages.c b/skypeweb/skypeweb_messages.c
index 57927ad..1b9aea4 100644
--- a/skypeweb/skypeweb_messages.c
+++ b/skypeweb/skypeweb_messages.c
@@ -520,6 +520,9 @@ skypeweb_poll(SkypeWebAccount *sa)
void
skypeweb_mark_conv_seen(PurpleConversation *conv, PurpleConversationUpdateType type)
{
+ if (!PURPLE_CONNECTION_IS_CONNECTED(purple_conversation_get_gc(conv)))
+ return;
+
if (type == PURPLE_CONVERSATION_UPDATE_UNSEEN) {
gchar *last_skypeweb_id = purple_conversation_get_data(conv, "last_skypeweb_id");