mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-12-14 08:29:49 +01:00
Improve ignore blocked: load Username from local cache
This commit is contained in:
parent
d5143cd276
commit
870fab1a9a
@ -2427,7 +2427,7 @@ public class DialogCell extends BaseCell {
|
||||
}
|
||||
|
||||
// if (width / 2 < AndroidUtilities.dp(40)) {
|
||||
// canvas.drawText(swipeMessage, getMeasuredWidth() - AndroidUtilities.dp(43) - width / 2, AndroidUtilities.dp(useForceThreeLines || SharedConfig.useThreeLinesLayout ? 62 : 59), Theme.dialogs_archiveTextPaint);
|
||||
// canvas.drawText(swipeMessage, getMeasuredWidth() - AndroidUtilities.dp(43) - width / 2, AndroidUtilities.dp(useForceThreeLines || SharedConfig.useThreeLinesLayout ? 62 : 59), Theme.dialogs_archiveTextPaint);
|
||||
// }
|
||||
|
||||
canvas.restore();
|
||||
|
@ -323,6 +323,12 @@ public class MessageHelper extends BaseController {
|
||||
message.id = cursor.intValue(2);
|
||||
message.date = cursor.intValue(3);
|
||||
message.dialog_id = dialogId;
|
||||
// Fix username show
|
||||
if (getMessagesController().getUser(ret.getSenderId()) == null) {
|
||||
TLRPC.User user = getMessagesStorage().getUser(ret.getSenderId());
|
||||
if (user != null)
|
||||
getMessagesController().putUser(user, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user