mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
Fix clear history
This commit is contained in:
parent
f15f5f10de
commit
68a7e5a51b
|
@ -231,7 +231,7 @@ public class ClearHistoryAlert extends BottomSheet {
|
|||
revokeTimeLimit = MessagesController.getInstance(currentAccount).revokeTimeLimit;
|
||||
}
|
||||
boolean canDeleteInbox = user != null && canRevokeInbox && revokeTimeLimit == 0x7fffffff;
|
||||
final boolean[] deleteForAll = new boolean[]{false};
|
||||
final boolean[] deleteForAll = new boolean[]{true};
|
||||
boolean deleteChatForAll = false;
|
||||
|
||||
if (!autoDeleteOnly) {
|
||||
|
@ -266,7 +266,7 @@ public class ClearHistoryAlert extends BottomSheet {
|
|||
if (canDeleteInbox && !UserObject.isDeleted(user)) {
|
||||
cell = new CheckBoxCell(context, 1);
|
||||
cell.setBackgroundDrawable(Theme.getSelectorDrawable(false));
|
||||
cell.setText(LocaleController.formatString("ClearHistoryOptionAlso", R.string.ClearHistoryOptionAlso, UserObject.getFirstName(user)), "", false, false);
|
||||
cell.setText(LocaleController.formatString("ClearHistoryOptionAlso", R.string.ClearHistoryOptionAlso, UserObject.getFirstName(user)), "", deleteForAll[0], false);
|
||||
cell.setPadding(LocaleController.isRTL ? AndroidUtilities.dp(16) : AndroidUtilities.dp(5), 0, LocaleController.isRTL ? AndroidUtilities.dp(5) : AndroidUtilities.dp(16), 0);
|
||||
linearLayout.addView(cell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 48, Gravity.TOP | Gravity.LEFT, 0, 0, 0, 0));
|
||||
cell.setOnClickListener(v -> {
|
||||
|
|
Loading…
Reference in New Issue
Block a user