fix: NekoX disableFlagSecure

This commit is contained in:
xtaodada 2024-01-17 22:11:27 +08:00
parent aa28a6b5cc
commit c70d5a3b94
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {