Bug fixes

This commit is contained in:
Isaac 2024-03-29 15:14:12 +04:00
parent 64e3df0d84
commit 89c7891f94
2 changed files with 3 additions and 3 deletions

View File

@ -607,7 +607,7 @@ private func peerInfoPersonalChannel(context: AccountContext, peerId: EnginePeer
for i in (0 ..< view.entries.count).reversed() {
if messages.isEmpty {
messages.append(EngineMessage(view.entries[i].message))
} else if messages[0].groupingKey == view.entries[i].message.groupingKey {
} else if messages[0].groupingKey != nil && messages[0].groupingKey == view.entries[i].message.groupingKey {
messages.append(EngineMessage(view.entries[i].message))
}
}

View File

@ -78,7 +78,7 @@ private final class ChatBusinessLinkTitlePanelComponent: Component {
transition: transition,
component: AnyComponent(PlainButtonComponent(
content: AnyComponent(MultilineTextComponent(
text: .plain(NSAttributedString(string: "Copy Link", font: Font.regular(17.0), textColor: component.theme.rootController.navigationBar.accentTextColor))
text: .plain(NSAttributedString(string: component.strings.GroupInfo_InviteLink_CopyLink, font: Font.regular(17.0), textColor: component.theme.rootController.navigationBar.accentTextColor))
)),
effectAlignment: .center,
minSize: CGSize(width: floor(availableSize.width * 0.5), height: size.height),
@ -107,7 +107,7 @@ private final class ChatBusinessLinkTitlePanelComponent: Component {
transition: transition,
component: AnyComponent(PlainButtonComponent(
content: AnyComponent(MultilineTextComponent(
text: .plain(NSAttributedString(string: "Share Link", font: Font.regular(17.0), textColor: component.theme.rootController.navigationBar.accentTextColor))
text: .plain(NSAttributedString(string: component.strings.GroupInfo_InviteLink_ShareLink, font: Font.regular(17.0), textColor: component.theme.rootController.navigationBar.accentTextColor))
)),
effectAlignment: .center,
minSize: CGSize(width: floor(availableSize.width * 0.5), height: size.height),