Fix message preview name

This commit is contained in:
世界 2021-04-17 23:28:21 +08:00
parent ec6ae15448
commit f093096b39
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 1 additions and 1 deletions

View File

@ -3165,7 +3165,7 @@ public class DialogCell extends BaseCell {
}
sb.append(". ");
if (chat != null && !message.isOut() && message.isFromUser() && message.messageOwner.action == null) {
TLRPC.User fromUser = MessagesController.getInstance(currentAccount).getUser(message.messageOwner.from_id.user_id);
TLRPC.User fromUser = MessagesController.getInstance(currentAccount).getUser(message.getSenderId());
if (fromUser != null) {
sb.append(ContactsController.formatName(fromUser.first_name, fromUser.last_name));
sb.append(". ");