pidgin/pidgin

Don't set saved statuses during startup

2 weeks ago, Gary Kramlich
ffc82edcdbfe
Parents af918f4ddfdf
Children e78a46048ae7
Don't set saved statuses during startup

This is now the responsibility of PurpleAccountManager and user interfaces
don't need to do it anymore.

Testing Done:
Compiled and connected the demo account.

Reviewed at https://reviews.imfreedom.org/r/3102/
--- a/pidgin/pidginapplication.c Fri Apr 12 01:41:35 2024 -0500
+++ b/pidgin/pidginapplication.c Fri Apr 12 01:55:22 2024 -0500
@@ -866,26 +866,8 @@
manager = purple_account_manager_get_default();
if(opt_nologin) {
- /* Set all accounts to "offline" */
- PurpleSavedStatus *saved_status;
-
- /* If we've used this type+message before, lookup the transient status */
- saved_status = purple_savedstatus_find_transient_by_type_and_message(
- PURPLE_STATUS_OFFLINE, NULL);
-
- /* If this type+message is unique then create a new transient saved status */
- if(saved_status == NULL) {
- saved_status = purple_savedstatus_new(NULL, PURPLE_STATUS_OFFLINE);
- }
-
- /* Set the status for each account */
- purple_savedstatus_activate(saved_status);
+ purple_account_manager_set_online(manager, FALSE);
} else {
- /* Everything is good to go--sign on already */
- if (!purple_prefs_get_bool("/purple/savedstatus/startup_current_status")) {
- purple_savedstatus_activate(purple_savedstatus_get_startup());
- }
-
purple_account_manager_set_online(manager, TRUE);
}