mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge commit 'c8d3af62fdb880f65fe4fb0e274cf2e1a45bcd41'
This commit is contained in:
commit
9ae71e61bf
@ -1343,6 +1343,13 @@ class ChatMessageInstantVideoItemNode: ChatMessageItemView, UIGestureRecognizerD
|
||||
if let reactionButtonsNode = self.reactionButtonsNode {
|
||||
let reactionButtonsSize = reactionButtonsNode.frame.size
|
||||
let reactionButtonsFrame = CGRect(origin: CGPoint(x: videoFrame.minX, y: videoFrame.maxY + 6.0), size: reactionButtonsSize)
|
||||
if !incoming {
|
||||
reactionButtonsFrame.origin.x = videoFrame.maxX - reactionButtonsSize.width
|
||||
}
|
||||
if let actionButtonsNode = self.actionButtonsNode {
|
||||
let actionButtonsSize = actionButtonsNode.frame.size
|
||||
reactionButtonsFrame.origin.y += 4.0 + actionButtonsSize.height
|
||||
}
|
||||
reactionButtonsNode.frame = reactionButtonsFrame
|
||||
}
|
||||
}
|
||||
|
@ -277,7 +277,6 @@ private func channelRecentActionsFilterControllerEntries(presentationData: Prese
|
||||
([.invites], presentationData.strings.Channel_AdminLogFilter_EventsInviteLinks),
|
||||
([.deleteMessages], presentationData.strings.Channel_AdminLogFilter_EventsDeletedMessages),
|
||||
([.editMessages], presentationData.strings.Channel_AdminLogFilter_EventsEditedMessages),
|
||||
([.sendMessages], presentationData.strings.Channel_AdminLogFilter_EventsSentMessages),
|
||||
([.pinnedMessages], presentationData.strings.Channel_AdminLogFilter_EventsPinned),
|
||||
([.leave], presentationData.strings.Channel_AdminLogFilter_EventsLeaving),
|
||||
([.calls], presentationData.strings.Channel_AdminLogFilter_EventsLiveStreams)
|
||||
|
@ -8,7 +8,7 @@ public struct TranslationSettings: Codable, Equatable {
|
||||
public var ignoredLanguages: [String]?
|
||||
|
||||
public static var defaultSettings: TranslationSettings {
|
||||
return TranslationSettings(showTranslate: true, ignoredLanguages: nil)
|
||||
return TranslationSettings(showTranslate: false, ignoredLanguages: nil)
|
||||
}
|
||||
|
||||
init(showTranslate: Bool, ignoredLanguages: [String]?) {
|
||||
@ -19,7 +19,7 @@ public struct TranslationSettings: Codable, Equatable {
|
||||
public init(from decoder: Decoder) throws {
|
||||
let container = try decoder.container(keyedBy: StringCodingKey.self)
|
||||
|
||||
self.showTranslate = try container.decodeIfPresent(Bool.self, forKey: "showTranslate") ?? true
|
||||
self.showTranslate = try container.decodeIfPresent(Bool.self, forKey: "showTranslate") ?? false
|
||||
self.ignoredLanguages = try container.decodeIfPresent([String].self, forKey: "ignoredLanguages")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user