mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Reaction improvements
This commit is contained in:
@@ -17,6 +17,14 @@ func updateAppConfigurationOnce(postbox: Postbox, network: Network) -> Signal<Vo
|
||||
}
|
||||
return postbox.transaction { transaction -> Void in
|
||||
if let data = JSON(apiJson: result) {
|
||||
if let value = data["reactions_default"] as? String {
|
||||
updateReactionSettings(transaction: transaction, { settings in
|
||||
var settings = settings
|
||||
settings.quickReaction = value
|
||||
return settings
|
||||
})
|
||||
}
|
||||
|
||||
updateAppConfiguration(transaction: transaction, { configuration -> AppConfiguration in
|
||||
var configuration = configuration
|
||||
configuration.data = data
|
||||
|
||||
Reference in New Issue
Block a user