remove "self report" option for now

This commit is contained in:
adbenitez
2025-11-03 15:40:15 +01:00
parent 51a9998848
commit ec0ffd3b8e
3 changed files with 0 additions and 25 deletions
-4
View File
@@ -57,10 +57,6 @@ public class Rpc {
return transport.callForResult(new TypeReference<String>(){}, "get_migration_error", mapper.valueToTree(accountId));
}
public Integer draftSelfReport(Integer accountId) throws RpcException {
return transport.callForResult(new TypeReference<Integer>(){}, "draft_self_report", mapper.valueToTree(accountId));
}
/* Returns configuration value for the given key. */
public String getConfig(Integer accountId, String key) throws RpcException {
return transport.callForResult(new TypeReference<String>(){}, "get_config", mapper.valueToTree(accountId), mapper.valueToTree(key));
@@ -210,24 +210,6 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
});
}
Preference selfReporting = this.findPreference("pref_self_reporting");
if (selfReporting != null) {
selfReporting.setOnPreferenceClickListener(((preference) -> {
try {
int chatId = getRpc(requireActivity()).draftSelfReport(dcContext.getAccountId());
Intent intent = new Intent(requireActivity(), ConversationActivity.class);
intent.putExtra(ConversationActivity.CHAT_ID_EXTRA, chatId);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
requireActivity().startActivity(intent);
} catch (RpcException e) {
Log.e(TAG, "Error calling rpc.draftSelfReport()", e);
}
return true;
}));
}
Preference proxySettings = this.findPreference("proxy_settings_button");
if (proxySettings != null) {
proxySettings.setOnPreferenceClickListener((preference) -> {
@@ -11,9 +11,6 @@
android:summary="@string/enable_realtime_explain"
android:title="@string/enable_realtime"/>
<Preference android:key="pref_self_reporting"
android:title="@string/send_stats_to_devs"/>
<PreferenceCategory android:title="@string/pref_experimental_features">
<Preference android:key="pref_webxdc_store_url"