diff --git a/telegram-adium/TelegramAccount.m b/telegram-adium/TelegramAccount.m index fda3e0d..60ba0c6 100644 --- a/telegram-adium/TelegramAccount.m +++ b/telegram-adium/TelegramAccount.m @@ -91,12 +91,7 @@ [[self preferenceForKey:@"Telegram:"TGP_KEY_SEND_READ_NOTIFICATIONS group:GROUP_ACCOUNT_STATUS] boolValue]); - - purple_account_set_bool (account, TGP_KEY_HISTORY_SYNC_ALL, - [[self preferenceForKey:@"Telegram:"TGP_KEY_HISTORY_SYNC_ALL - group:GROUP_ACCOUNT_STATUS] - boolValue]); - + purple_account_set_int (account, TGP_KEY_HISTORY_RETRIEVAL_THRESHOLD, [[self preferenceForKey:@"Telegram:"TGP_KEY_HISTORY_RETRIEVAL_THRESHOLD group:GROUP_ACCOUNT_STATUS] diff --git a/telegram-adium/TelegramAccountView.xib b/telegram-adium/TelegramAccountView.xib index 257cb57..e7a1824 100644 --- a/telegram-adium/TelegramAccountView.xib +++ b/telegram-adium/TelegramAccountView.xib @@ -1,5 +1,5 @@ - + @@ -7,7 +7,6 @@ - @@ -87,11 +86,11 @@ - + - + @@ -100,7 +99,7 @@ - + @@ -109,7 +108,7 @@ - + @@ -119,7 +118,7 @@ - + @@ -146,7 +145,7 @@ - + @@ -155,7 +154,7 @@ - + @@ -164,23 +163,15 @@ - - + @@ -189,7 +180,7 @@ - + @@ -199,7 +190,7 @@ - + @@ -208,7 +199,7 @@ - + @@ -217,7 +208,7 @@ - + diff --git a/telegram-adium/TelegramAccountViewController.m b/telegram-adium/TelegramAccountViewController.m index 37c9694..75bfdde 100644 --- a/telegram-adium/TelegramAccountViewController.m +++ b/telegram-adium/TelegramAccountViewController.m @@ -47,9 +47,6 @@ group:GROUP_ACCOUNT_STATUS] ?: @""; [textField_password setStringValue:passwordTwoFactor]; - id s = [account preferenceForKey:@"Telegram:"TGP_KEY_HISTORY_SYNC_ALL group:GROUP_ACCOUNT_STATUS]; - [checkbox_historySyncAll setState:[s boolValue]]; - id read = [account preferenceForKey:@"Telegram:"TGP_KEY_DISPLAY_READ_NOTIFICATIONS group:GROUP_ACCOUNT_STATUS]; [checkbox_displayReadNotifications setState:[read boolValue]]; @@ -81,10 +78,6 @@ forKey:@"Telegram:"TGP_KEY_ACCEPT_SECRET_CHATS group:GROUP_ACCOUNT_STATUS]; - [account setPreference:[NSNumber numberWithBool:[checkbox_historySyncAll state]] - forKey:@"Telegram:"TGP_KEY_HISTORY_SYNC_ALL - group:GROUP_ACCOUNT_STATUS]; - [account setPreference:[NSNumber numberWithBool:[checkbox_displayReadNotifications state]] forKey:@"Telegram:"TGP_KEY_DISPLAY_READ_NOTIFICATIONS group:GROUP_ACCOUNT_STATUS]; diff --git a/telegram-adium/TelegramJoinChatView.xib b/telegram-adium/TelegramJoinChatView.xib index bbccbd5..f12c6cd 100644 --- a/telegram-adium/TelegramJoinChatView.xib +++ b/telegram-adium/TelegramJoinChatView.xib @@ -1,5 +1,5 @@ - + diff --git a/telegram-purple.c b/telegram-purple.c index 557698d..a8e1902 100644 --- a/telegram-purple.c +++ b/telegram-purple.c @@ -837,11 +837,7 @@ static void tgprpl_init (PurplePlugin *plugin) { opt = purple_account_option_int_new (_("Display buddies offline after (days)"), TGP_KEY_INACTIVE_DAYS_OFFLINE, TGP_DEFAULT_INACTIVE_DAYS_OFFLINE); prpl_info.protocol_options = g_list_append (prpl_info.protocol_options, opt); - - opt = purple_account_option_bool_new (_("Fetch past history on first login"), - TGP_KEY_HISTORY_SYNC_ALL, TGP_DEFAULT_HISTORY_SYNC_ALL); - prpl_info.protocol_options = g_list_append (prpl_info.protocol_options, opt); - + opt = purple_account_option_int_new (_("Don't fetch history older than (days)\n(0 for unlimited)"), TGP_KEY_HISTORY_RETRIEVAL_THRESHOLD, TGP_DEFAULT_HISTORY_RETRIEVAL_THRESHOLD); prpl_info.protocol_options = g_list_append (prpl_info.protocol_options, opt); diff --git a/telegram-purple.h b/telegram-purple.h index 84d046a..a08b527 100644 --- a/telegram-purple.h +++ b/telegram-purple.h @@ -81,9 +81,6 @@ #define TGP_DEFAULT_JOIN_GROUP_CHATS FALSE #define TGP_KEY_JOIN_GROUP_CHATS "auto-join-group-chats" -#define TGP_KEY_HISTORY_SYNC_ALL "history-sync-all" -#define TGP_DEFAULT_HISTORY_SYNC_ALL FALSE - #define TGP_DEFAULT_DISPLAY_READ_NOTIFICATIONS FALSE #define TGP_KEY_DISPLAY_READ_NOTIFICATIONS "display-read-notifications"