1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-11-22 23:35:52 +01:00

fix: don't show fwd header in Replies

This commit is contained in:
luvletter2333 2023-03-16 03:34:50 +08:00
parent 1063f56a25
commit da6d0bea22
No known key found for this signature in database
GPG Key ID: 9EB7723F3A0ACF92

View File

@ -6871,17 +6871,9 @@ public class MessageObject {
}
public boolean needDrawForwarded() {
return (messageOwner.flags & TLRPC.MESSAGE_FLAG_FWD) != 0
&& messageOwner.fwd_from != null
&& !messageOwner.fwd_from.imported
&& (
messageOwner.fwd_from.saved_from_peer == null
|| !(messageOwner.fwd_from.from_id instanceof TLRPC.TL_peerChannel) || messageOwner.fwd_from.saved_from_peer.channel_id != messageOwner.fwd_from.from_id.channel_id
|| (((messageOwner.flags & TLRPC.MESSAGE_FLAG_REPLY) == 0) &&
(messageOwner.fwd_from.from_id instanceof TLRPC.TL_peerUser
|| messageOwner.fwd_from.from_id == null && messageOwner.fwd_from.from_name != null))
)
&& UserConfig.getInstance(currentAccount).getClientUserId() != getDialogId();
return (messageOwner.flags & TLRPC.MESSAGE_FLAG_FWD) != 0 && messageOwner.fwd_from != null && !messageOwner.fwd_from.imported && (
messageOwner.fwd_from.saved_from_peer == null || !(messageOwner.fwd_from.from_id instanceof TLRPC.TL_peerChannel) || messageOwner.fwd_from.saved_from_peer.channel_id != messageOwner.fwd_from.from_id.channel_id
) && UserConfig.getInstance(currentAccount).getClientUserId() != getDialogId() && !UserObject.isReplyUser(messageOwner.dialog_id);
}
public static boolean isForwardedMessage(TLRPC.Message message) {