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

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--steam-mobile/libsteam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c
index ac04e3d..f2a4fa8 100644
--- a/steam-mobile/libsteam.c
+++ b/steam-mobile/libsteam.c
@@ -890,6 +890,8 @@ steam_get_offline_history_cb(SteamAccount *sa, JsonObject *obj, gpointer user_da
} else {
serv_got_im(sa->pc, who, text, PURPLE_MESSAGE_RECV, timestamp);
}
+
+ sa->last_message_timestamp = timestamp;
}
g_free(who);
@@ -1418,6 +1420,9 @@ static void steam_close(PurpleConnection *pc)
purple_timeout_remove(sa->poll_timeout);
purple_timeout_remove(sa->watchdog_timeout);
+ if (sa->last_message_timestamp > 0)
+ purple_account_set_int(sa->account, "last_message_timestamp", sa->last_message_timestamp);
+
purple_debug_info("steam", "destroying %d waiting connections\n",
g_queue_get_length(sa->waiting_conns));