Fix media search results header title

This commit is contained in:
Ilya Laktyushin 2020-09-07 18:33:47 +03:00
parent 63679c0d46
commit 5806fef191
4 changed files with 3584 additions and 3572 deletions

View file

@ -5759,6 +5759,13 @@ Any member of this group will be able to see messages in the channel.";
"ChatList.Search.Messages_many" = "%@ messages";
"ChatList.Search.Messages_any" = "%@ messages";
"ChatList.Search.Photos_0" = "%@ photos";
"ChatList.Search.Photos_1" = "%@ photo";
"ChatList.Search.Photos_2" = "%@ photos";
"ChatList.Search.Photos_3_10" = "%@ photos";
"ChatList.Search.Photos_many" = "%@ photos";
"ChatList.Search.Photos_any" = "%@ photos";
"ChatList.Search.Links_0" = "%@ links";
"ChatList.Search.Links_1" = "%@ link";
"ChatList.Search.Links_2" = "%@ links";

View file

@ -698,7 +698,7 @@ final class ChatListSearchMediaNode: ASDisplayNode, UIScrollViewDelegate {
if let (size, sideInset, bottomInset, visibleHeight, isScrollingLockedAtTop, expandProgress, presentationData) = self.currentParams {
if totalCount > 0 {
self.headerNode.title = presentationData.strings.ChatList_Search_Messages(totalCount).uppercased()
self.headerNode.title = presentationData.strings.ChatList_Search_Photos(totalCount).uppercased()
}
self.update(size: size, sideInset: sideInset, bottomInset: bottomInset, visibleHeight: visibleHeight, isScrollingLockedAtTop: isScrollingLockedAtTop, expandProgress: expandProgress, presentationData: presentationData, synchronous: true, transition: .immediate)