fix getChatTitleOverride usage

This commit is contained in:
vivabelarus 2022-12-10 05:05:08 +04:00
parent 28093bcb37
commit 90af8aa506
2 changed files with 3 additions and 3 deletions

View file

@ -460,7 +460,7 @@ public class AudioPlayerAlert extends BottomSheet implements NotificationCenter.
} else {
TLRPC.Chat chat = MessagesController.getInstance(currentAccount).getChat(-did);
if (chat != null) {
String title = UserConfig.getChatTitleOverride(currentAccount, (int)chat.id);
String title = UserConfig.getChatTitleOverride(currentAccount, chat.id);
if (title == null) {
title = chat.title;
}

View file

@ -11353,7 +11353,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
chat = MessagesController.getInstance(currentAccount).getChat(newMessageObject.messageOwner.fwd_from.from_id.channel_id);
}
if (chat != null) {
String title = UserConfig.getChatTitleOverride(currentAccount, (int)chat.id);
String title = UserConfig.getChatTitleOverride(currentAccount, chat.id);
if (title == null) {
title = chat.title;
}
@ -11719,7 +11719,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
if (parentChatActivity != null) {
TLRPC.Chat chat = parentChatActivity.getCurrentChat();
if (chat != null) {
String title = UserConfig.getChatTitleOverride(currentAccount, (int)chat.id);
String title = UserConfig.getChatTitleOverride(currentAccount, chat.id);
if (title == null) {
title = chat.title;
}