mirror of https://github.com/procxx/kepka.git
clearing media autodownload settings on logout, fixed history clearing
This commit is contained in:
parent
01c26cedb1
commit
517358c8e9
|
@ -1842,6 +1842,9 @@ namespace App {
|
||||||
cSetSavedGifs(SavedGifs());
|
cSetSavedGifs(SavedGifs());
|
||||||
cSetLastSavedGifsUpdate(0);
|
cSetLastSavedGifsUpdate(0);
|
||||||
cSetReportSpamStatuses(ReportSpamStatuses());
|
cSetReportSpamStatuses(ReportSpamStatuses());
|
||||||
|
cSetAutoDownloadPhoto(0);
|
||||||
|
cSetAutoDownloadAudio(0);
|
||||||
|
cSetAutoDownloadGif(0);
|
||||||
::photoItems.clear();
|
::photoItems.clear();
|
||||||
::documentItems.clear();
|
::documentItems.clear();
|
||||||
::webPageItems.clear();
|
::webPageItems.clear();
|
||||||
|
|
|
@ -994,7 +994,7 @@ void MainWidget::deleteHistoryPart(PeerData *peer, const MTPmessages_AffectedHis
|
||||||
return;
|
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) {
|
void MainWidget::deleteMessages(PeerData *peer, const QVector<MTPint> &ids) {
|
||||||
|
|
Loading…
Reference in New Issue