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:
@@ -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();
|
||||
}();
|
||||
|
Reference in New Issue
Block a user