fix: NekoX disableFlagSecure
This commit is contained in:
parent
aa28a6b5cc
commit
c70d5a3b94
@ -1024,7 +1024,7 @@ public class FileLoader extends BaseController {
|
||||
if (metadata != null) {
|
||||
int flag;
|
||||
long dialogId = metadata.dialogId;
|
||||
if (getMessagesController().isChatNoForwards(getMessagesController().getChat(-dialogId)) || DialogObject.isEncryptedDialog(dialogId)) {
|
||||
if (getMessagesController().isChatNoForwardsWithOverride(getMessagesController().getChat(-dialogId)) || DialogObject.isEncryptedDialog(dialogId)) {
|
||||
return false;
|
||||
}
|
||||
if (parentObject instanceof MessageObject) {
|
||||
|
@ -7591,9 +7591,9 @@ public class MessageObject {
|
||||
|
||||
public static boolean shouldEncryptPhotoOrVideo(int currentAccount, TLRPC.Message message) {
|
||||
if (NekoXConfig.disableFlagSecure) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
if (MessagesController.getInstance(currentAccount).isChatNoForwards(getChatId(message)) || message != null && message.noforwards) {
|
||||
if (MessagesController.getInstance(currentAccount).isChatNoForwardsWithOverride(getChatId(message)) || message != null && message.noforwards) {
|
||||
return true;
|
||||
}
|
||||
if (message instanceof TLRPC.TL_message_secret) {
|
||||
|
Loading…
Reference in New Issue
Block a user