More screencast fixing

This commit is contained in:
Ilya Laktyushin 2021-06-25 23:57:15 +04:00
parent c20e99e4fc
commit d7f64543d5

View File

@ -557,7 +557,8 @@ public final class IpcGroupCallBufferBroadcastContext {
return
}
if let currentId = self.currentId, currentId == cutoffPayload.id {
let timestamp = Int32(Date().timeIntervalSince1970)
if let currentId = self.currentId, currentId == cutoffPayload.id && cutoffPayload.timestamp > timestamp - 10 {
self.statusPromise.set(.single(.finished(.screencastEnded)))
return
}