mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -5,10 +5,11 @@ import TelegramCore
|
||||
enum VideoChatNotificationIcon {
|
||||
case peer(EnginePeer)
|
||||
case icon(String)
|
||||
case animation(String)
|
||||
}
|
||||
|
||||
extension VideoChatScreenComponent.View {
|
||||
func displayToast(icon: VideoChatNotificationIcon, text: String, duration: Int32) {
|
||||
func presentToast(icon: VideoChatNotificationIcon, text: String, duration: Int32) {
|
||||
let id = Int64.random(in: 0 ..< .max)
|
||||
|
||||
let expiresOn = Int32(CFAbsoluteTimeGetCurrent()) + duration
|
||||
|
||||
Reference in New Issue
Block a user