mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
clearing media autodownload settings on logout, fixed history clearing
This commit is contained in:
parent
01c26cedb1
commit
517358c8e9
2 changed files with 4 additions and 1 deletions
|
@ -1842,6 +1842,9 @@ namespace App {
|
|||
cSetSavedGifs(SavedGifs());
|
||||
cSetLastSavedGifsUpdate(0);
|
||||
cSetReportSpamStatuses(ReportSpamStatuses());
|
||||
cSetAutoDownloadPhoto(0);
|
||||
cSetAutoDownloadAudio(0);
|
||||
cSetAutoDownloadGif(0);
|
||||
::photoItems.clear();
|
||||
::documentItems.clear();
|
||||
::webPageItems.clear();
|
||||
|
|
|
@ -994,7 +994,7 @@ void MainWidget::deleteHistoryPart(PeerData *peer, const MTPmessages_AffectedHis
|
|||
return;
|
||||
}
|
||||
|
||||
MTP::send(MTPmessages_DeleteHistory(peer->input, d.voffset), rpcDone(&MainWidget::deleteHistoryPart, peer));
|
||||
MTP::send(MTPmessages_DeleteHistory(peer->input, MTP_int(0)), rpcDone(&MainWidget::deleteHistoryPart, peer));
|
||||
}
|
||||
|
||||
void MainWidget::deleteMessages(PeerData *peer, const QVector<MTPint> &ids) {
|
||||
|
|
Loading…
Add table
Reference in a new issue