mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Add transaction blocking to storage box
This commit is contained in:
parent
83638533a0
commit
58811a33bb
2 changed files with 505 additions and 423 deletions
|
|
@ -3913,8 +3913,13 @@ public class Postbox {
|
|||
}
|
||||
|
||||
public func setCanBeginTransactions(_ value: Bool, afterTransactionIfRunning: @escaping () -> Void = {}) {
|
||||
let storageBox = self.mediaBox.storageBox
|
||||
self.impl.with { impl in
|
||||
impl.setCanBeginTransactions(value, afterTransactionIfRunning: afterTransactionIfRunning)
|
||||
impl.setCanBeginTransactions(value, afterTransactionIfRunning: {
|
||||
storageBox.setCanBeginTransactions(value, afterTransactionIfRunning: {
|
||||
afterTransactionIfRunning()
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue