mirror of https://github.com/NekoX-Dev/NekoX.git
fix: don't show fwd header in Replies
This commit is contained in:
parent
1063f56a25
commit
da6d0bea22
|
@ -6871,17 +6871,9 @@ public class MessageObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean needDrawForwarded() {
|
public boolean needDrawForwarded() {
|
||||||
return (messageOwner.flags & TLRPC.MESSAGE_FLAG_FWD) != 0
|
return (messageOwner.flags & TLRPC.MESSAGE_FLAG_FWD) != 0 && messageOwner.fwd_from != null && !messageOwner.fwd_from.imported && (
|
||||||
&& messageOwner.fwd_from != null
|
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.fwd_from.imported
|
) && UserConfig.getInstance(currentAccount).getClientUserId() != getDialogId() && !UserObject.isReplyUser(messageOwner.dialog_id);
|
||||||
&& (
|
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isForwardedMessage(TLRPC.Message message) {
|
public static boolean isForwardedMessage(TLRPC.Message message) {
|
||||||
|
|
Loading…
Reference in New Issue