Cover deleted PM composer state and log GUI deletion failures
This commit is contained in:
1 parent
6c5a19b2d0
commit
61cf7163ea
2 files changed
+35
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user