Premium story reactions info

This commit is contained in:
Ilya Laktyushin
2023-08-30 14:29:49 +04:00
parent 517337de27
commit 9fd6b9369f
5 changed files with 35 additions and 49 deletions

View File

@@ -1950,6 +1950,17 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate
self.entitiesView.getAvailableReactions = { [weak self] in
return self?.availableReactions ?? []
}
self.entitiesView.present = { [weak self] c in
if let self {
self.controller?.dismissAllTooltips()
self.controller?.present(c, in: .current)
}
}
self.entitiesView.push = { [weak self] c in
if let self {
self.controller?.push(c)
}
}
self.availableReactionsDisposable = (allowedStoryReactions(context: controller.context)
|> deliverOnMainQueue).start(next: { [weak self] reactions in
@@ -3959,8 +3970,8 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate
let controller = context.sharedContext.makePremiumIntroController(context: context, source: .storiesExpirationDurations, forceDark: true, dismissed: nil)
self.push(controller)
}
return false }
)
return false
})
self.present(controller, in: .current)
}
@@ -3980,8 +3991,8 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate
})
self.push(controller)
}
return false }
)
return false
})
self.present(controller, in: .current)
}