clearing media autodownload settings on logout, fixed history clearing

This commit is contained in:
John Preston 2016-02-15 14:11:07 +03:00
parent 01c26cedb1
commit 517358c8e9
2 changed files with 4 additions and 1 deletions

View File

@ -1842,6 +1842,9 @@ namespace App {
cSetSavedGifs(SavedGifs());
cSetLastSavedGifsUpdate(0);
cSetReportSpamStatuses(ReportSpamStatuses());
cSetAutoDownloadPhoto(0);
cSetAutoDownloadAudio(0);
cSetAutoDownloadGif(0);
::photoItems.clear();
::documentItems.clear();
::webPageItems.clear();

View File

@ -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) {