mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-17 09:10:30 +00:00
Fix reaction limit
This commit is contained in:
parent
09da967592
commit
babdec7c07
@ -346,7 +346,7 @@ final class BrowserDocumentContent: UIView, BrowserContent, WKNavigationDelegate
|
||||
self.updateScrollingOffset(isReset: true, transition: .spring(duration: 0.4))
|
||||
}
|
||||
|
||||
func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!)
|
||||
func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
|
||||
self.updateFontState(self.currentFontState, force: true)
|
||||
}
|
||||
|
||||
|
@ -1402,6 +1402,9 @@ public class PeerAllowedReactionsScreen: ViewControllerComponentContainer {
|
||||
case .empty:
|
||||
isEnabled = false
|
||||
}
|
||||
if let starsAllowed = reactionSettings.starsAllowed, starsAllowed {
|
||||
isEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
var missingReactionFiles: [Int64] = []
|
||||
|
@ -1993,9 +1993,17 @@ private func editingItems(data: PeerInfoScreenData?, state: PeerInfoState, chatL
|
||||
case .all:
|
||||
label = presentationData.strings.PeerInfo_LabelAllReactions
|
||||
case .empty:
|
||||
label = presentationData.strings.PeerInfo_ReactionsDisabled
|
||||
if let starsAllowed = reactionSettings.starsAllowed, starsAllowed {
|
||||
label = "1"
|
||||
} else {
|
||||
label = presentationData.strings.PeerInfo_ReactionsDisabled
|
||||
}
|
||||
case let .limited(reactions):
|
||||
label = "\(reactions.count)"
|
||||
var countValue = reactions.count
|
||||
if let starsAllowed = reactionSettings.starsAllowed, starsAllowed {
|
||||
countValue += 1
|
||||
}
|
||||
label = "\(countValue)"
|
||||
}
|
||||
} else {
|
||||
label = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user