mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 23:51:00 +00:00
fix getChatTitleOverride usage
This commit is contained in:
parent
28093bcb37
commit
90af8aa506
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue