mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 10:33:36 +00:00
revert forward name
This commit is contained in:
parent
23952a1dd5
commit
1cf9174b75
|
@ -10843,26 +10843,26 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
|||
} else if (messageObject.customReplyName != null) {
|
||||
name = messageObject.customReplyName;
|
||||
} else {
|
||||
name = messageObject.replyMessageObject.getForwardedName();
|
||||
if (name == null) {
|
||||
long fromId = messageObject.replyMessageObject.getFromChatId();
|
||||
if (fromId > 0) {
|
||||
TLRPC.User user = MessagesController.getInstance(currentAccount).getUser(fromId);
|
||||
if (user != null) {
|
||||
name = UserObject.getUserName(user);
|
||||
}
|
||||
} else if (fromId < 0) {
|
||||
TLRPC.Chat chat = MessagesController.getInstance(currentAccount).getChat(-fromId);
|
||||
if (chat != null) {
|
||||
name = chat.title;
|
||||
}
|
||||
} else {
|
||||
TLRPC.Chat chat = MessagesController.getInstance(currentAccount).getChat(messageObject.replyMessageObject.messageOwner.peer_id.channel_id);
|
||||
if (chat != null) {
|
||||
name = chat.title;
|
||||
}
|
||||
// name = messageObject.replyMessageObject.getForwardedName();
|
||||
// if (name == null) {
|
||||
long fromId = messageObject.replyMessageObject.getFromChatId();
|
||||
if (fromId > 0) {
|
||||
TLRPC.User user = MessagesController.getInstance(currentAccount).getUser(fromId);
|
||||
if (user != null) {
|
||||
name = UserObject.getUserName(user);
|
||||
}
|
||||
} else if (fromId < 0) {
|
||||
TLRPC.Chat chat = MessagesController.getInstance(currentAccount).getChat(-fromId);
|
||||
if (chat != null) {
|
||||
name = chat.title;
|
||||
}
|
||||
} else {
|
||||
TLRPC.Chat chat = MessagesController.getInstance(currentAccount).getChat(messageObject.replyMessageObject.messageOwner.peer_id.channel_id);
|
||||
if (chat != null) {
|
||||
name = chat.title;
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
if (name == null) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user