Fix monoforum user unread counters

This commit is contained in:
Isaac
2025-05-27 18:41:24 +08:00
parent 8f7006281c
commit 3cad999c75
21 changed files with 117 additions and 984 deletions

View File

@@ -417,8 +417,7 @@ public final class ChatSideTopicsPanel: Component {
if let threadData = component.item.item.threadData {
titleText = threadData.info.title
} else {
//TODO:localize
titleText = "General"
titleText = " "
}
} else {
titleText = component.item.item.renderedPeer.chatMainPeer?.compactDisplayTitle ?? " "
@@ -847,8 +846,7 @@ public final class ChatSideTopicsPanel: Component {
if let threadData = component.item.item.threadData {
titleText = threadData.info.title
} else {
//TODO:localize
titleText = "General"
titleText = " "
}
} else {
titleText = component.item.item.renderedPeer.chatMainPeer?.compactDisplayTitle ?? " "
@@ -1220,8 +1218,7 @@ public final class ChatSideTopicsPanel: Component {
containerSize: CGSize(width: 100.0, height: 100.0)
)
//TODO:localize
let titleText: String = "All"
let titleText: String = component.strings.Chat_InlineTopicMenu_AllTab
let titleSize = self.title.update(
transition: .immediate,
component: AnyComponent(MultilineTextComponent(
@@ -1348,8 +1345,7 @@ public final class ChatSideTopicsPanel: Component {
let leftInset: CGFloat = 6.0
let rightInset: CGFloat = 12.0
//TODO:localize
let titleText: String = "All"
let titleText: String = component.strings.Chat_InlineTopicMenu_AllTab
let titleSize = self.title.update(
transition: .immediate,
component: AnyComponent(MultilineTextComponent(