mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Media playback fixes
This commit is contained in:
@@ -148,6 +148,16 @@ public protocol SharedMediaPlaylistLocation {
|
||||
func isEqual(to: SharedMediaPlaylistLocation) -> Bool
|
||||
}
|
||||
|
||||
public func areSharedMediaPlaylistsEqual(_ lhs: SharedMediaPlaylist?, _ rhs: SharedMediaPlaylist?) -> Bool {
|
||||
if let lhs = lhs, let rhs = rhs {
|
||||
return lhs.id.isEqual(to: rhs.id) && lhs.location.isEqual(to: rhs.location)
|
||||
} else if (lhs != nil) != (rhs != nil) {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
public protocol SharedMediaPlaylist: AnyObject {
|
||||
var id: SharedMediaPlaylistId { get }
|
||||
var location: SharedMediaPlaylistLocation { get }
|
||||
|
||||
Reference in New Issue
Block a user