mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
Merge commit '40dbadccd45de57f22f2399de999be95b2457d94'
This commit is contained in:
commit
f0eef9dfe7
@ -709,7 +709,7 @@ extension StoreMessage {
|
||||
if mediaValue is TelegramMediaWebpage {
|
||||
let leadingPreview = (flags & (1 << 27)) != 0
|
||||
|
||||
if let webpageAttributes {
|
||||
if let webpageAttributes = webpageAttributes {
|
||||
attributes.append(WebpagePreviewMessageAttribute(leadingPreview: leadingPreview, forceLargeMedia: webpageAttributes.forceLargeMedia, isManuallyAdded: webpageAttributes.isManuallyAdded, isSafe: webpageAttributes.isSafe))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1153,7 +1153,7 @@ private func finalStateWithUpdatesAndServerTime(accountPeerId: PeerId, postbox:
|
||||
medias.append(mediaValue)
|
||||
|
||||
if mediaValue is TelegramMediaWebpage {
|
||||
if let webpageAttributes {
|
||||
if let webpageAttributes = webpageAttributes {
|
||||
attributes.append(WebpagePreviewMessageAttribute(leadingPreview: false, forceLargeMedia: webpageAttributes.forceLargeMedia, isManuallyAdded: webpageAttributes.isManuallyAdded, isSafe: webpageAttributes.isSafe))
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ private final class AccountPresenceManagerImpl {
|
||||
self.shouldKeepOnlinePresenceDisposable = (shouldKeepOnlinePresence
|
||||
|> distinctUntilChanged
|
||||
|> deliverOn(self.queue)).start(next: { [weak self] value in
|
||||
guard let self else {
|
||||
guard let `self` = self else {
|
||||
return
|
||||
}
|
||||
if self.wasOnline != value {
|
||||
|
||||
@ -104,7 +104,7 @@ func _internal_getPremiumGiveawayInfo(account: Account, peerId: EnginePeer.Id, m
|
||||
return .single(nil)
|
||||
}
|
||||
|> map { result -> PremiumGiveawayInfo? in
|
||||
if let result {
|
||||
if let result = result {
|
||||
switch result {
|
||||
case let .giveawayInfo(flags, startDate, joinedTooEarlyDate, adminDisallowedChatId, disallowedCountry):
|
||||
if (flags & (1 << 3)) != 0 {
|
||||
|
||||
@ -43,7 +43,7 @@ public func makeTempContext(
|
||||
},
|
||||
appDelegate: nil
|
||||
)
|
||||
self.sharedTempContext = sharedContext
|
||||
sharedTempContext = sharedContext
|
||||
|
||||
return sharedContext.activeAccountContexts
|
||||
|> take(1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user