Cover deleted PM composer state and log GUI deletion failures

This commit is contained in:
evgeny committed 2026-10-26 22:11:39 +01:00
1 parent 6c5a19b2d0
commit 61cf7163ea
2 files changed
+35

No files matched your search

+2
View File
@@ -1110,6 +1110,8 @@ void MainWindow::onDmDeleteResult(quint64 request, const QString& convId, quint6
m_messageList->setDmDeleting(convId, generation, false);
m_channelList->loadChannels();
if (!success) {
GUI_ERROR("PM delete failed: conv=%s generation=%llu request=%llu", qPrintable(convId),
(unsigned long long)generation, (unsigned long long)request);
auto* error = new QMessageBox(QMessageBox::Warning, QCoreApplication::translate("ChatGui", "Delete conversation"),
QCoreApplication::translate("ChatGui", "Could not delete the conversation. Please try again."), QMessageBox::Ok, this);
error->setAttribute(Qt::WA_DeleteOnClose); error->open();