2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

offering to send current username in crash report

This commit is contained in:
John Preston
2016-03-14 12:25:48 +03:00
parent b38163b026
commit f25e63bad7
6 changed files with 108 additions and 20 deletions

View File

@@ -3858,20 +3858,7 @@ void HistoryWidget::updateReportSpamStatus() {
void HistoryWidget::requestReportSpamSetting() {
if (_reportSpamSettingRequestId >= 0 || !_peer) return;
bool outFound = false;
for (auto i : _history->blocks) {
for (auto j : i->items) {
if (j->out()) {
outFound = true;
break;
}
}
}
if (outFound) {
_reportSpamStatus = dbiprsNoButton;
} else {
_reportSpamSettingRequestId = MTP::send(MTPmessages_GetPeerSettings(_peer->input), rpcDone(&HistoryWidget::reportSpamSettingDone), rpcFail(&HistoryWidget::reportSpamSettingFail));
}
_reportSpamSettingRequestId = MTP::send(MTPmessages_GetPeerSettings(_peer->input), rpcDone(&HistoryWidget::reportSpamSettingDone), rpcFail(&HistoryWidget::reportSpamSettingFail));
}
void HistoryWidget::reportSpamSettingDone(const MTPPeerSettings &result, mtpRequestId req) {
@@ -6876,6 +6863,7 @@ bool HistoryWidget::pinnedMsgVisibilityUpdated() {
_pinnedBar->shadow.show();
}
connect(&_pinnedBar->cancel, SIGNAL(clicked()), this, SLOT(onPinnedHide()));
_reportSpamPanel.raise();
_sideShadow.raise();
_topShadow.raise();
updatePinnedBar();