mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Refactoring
This commit is contained in:
@@ -25,13 +25,7 @@ func _internal_terminateSecretChat(transaction: Transaction, peerId: PeerId, req
|
||||
|
||||
func _internal_removePeerChat(account: Account, transaction: Transaction, mediaBox: MediaBox, peerId: PeerId, reportChatSpam: Bool, deleteGloballyIfPossible: Bool) {
|
||||
if let _ = transaction.getPeerChatInterfaceState(peerId) {
|
||||
transaction.updatePeerChatInterfaceState(peerId, update: { current in
|
||||
if let current = current {
|
||||
return account.auxiliaryMethods.updatePeerChatInputState(current, nil)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
})
|
||||
transaction.setPeerChatInterfaceState(peerId, state: nil)
|
||||
}
|
||||
_internal_updateChatListFiltersInteractively(transaction: transaction, { filters in
|
||||
var filters = filters
|
||||
|
||||
Reference in New Issue
Block a user