2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add better error reporting to payments.

This commit is contained in:
John Preston
2021-04-02 19:18:49 +04:00
parent e106bd143e
commit ee098d00ad
12 changed files with 161 additions and 52 deletions

View File

@@ -776,16 +776,9 @@ HistoryService::PreparedText HistoryService::preparePaymentSentText() {
if (payment->msg) {
if (const auto media = payment->msg->media()) {
if (const auto invoice = media->invoice()) {
if (!invoice->isMultipleAllowed
&& !invoice->receiptMsgId) {
media->setInvoiceReceiptId(id);
}
return textcmdLink(1, invoice->title);
}
}
return QString();// tr::lng_deleted_message(tr::now);
} else if (payment->msgId) {
return QString();// tr::lng_contacts_loading(tr::now);
}
return QString();
}();