Remove unused code from notification settings.

This commit is contained in:
B. Petersen
2016-10-09 22:19:08 +02:00
parent 83d2bf89fb
commit d1b2057415
9 changed files with 26 additions and 648 deletions
@@ -5102,6 +5102,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
if (currentEncryptedChat != null && arr.size() == 1) {
MessageObject obj = arr.get(0);
/* EDIT BY MR
if (currentEncryptedChat != null && obj.isOut() && obj.messageOwner.action != null && obj.messageOwner.action instanceof TLRPC.TL_messageEncryptedAction &&
obj.messageOwner.action.encryptedAction instanceof TLRPC.TL_decryptedMessageActionSetMessageTTL && getParentActivity() != null) {
if (AndroidUtilities.getPeerLayerVersion(currentEncryptedChat.layer) < 17 && currentEncryptedChat.ttl > 0 && currentEncryptedChat.ttl <= 60) {
@@ -5112,6 +5113,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
showDialog(builder.create());
}
}
*/
}
if (currentChat != null || inlineReturn != 0) {
for (int a = 0; a < arr.size(); a++) {