mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
a4b5b9d30f
@ -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