mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow clearing calls log.
This commit is contained in:
@@ -3412,6 +3412,20 @@ void Session::unregisterContactItem(
|
||||
}
|
||||
}
|
||||
|
||||
void Session::registerCallItem(not_null<HistoryItem*> item) {
|
||||
_callItems.emplace(item);
|
||||
}
|
||||
|
||||
void Session::unregisterCallItem(not_null<HistoryItem*> item) {
|
||||
_callItems.erase(item);
|
||||
}
|
||||
|
||||
void Session::destroyAllCallItems() {
|
||||
while (!_callItems.empty()) {
|
||||
(*_callItems.begin())->destroy();
|
||||
}
|
||||
}
|
||||
|
||||
void Session::documentMessageRemoved(not_null<DocumentData*> document) {
|
||||
if (_documentItems.find(document) != _documentItems.end()) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user