Localize desktop interaction errors

This commit is contained in:
evgeny committed 2026-10-06 22:21:13 +02:00
1 parent 6686dd1815
commit 4966600d52
1 file changed
+4 -1
+4 -1
View File
@@ -78,7 +78,10 @@ void MessageList::onFeedbackResult(const uint8_t* data, int len) {
QJsonObject state = QJsonDocument::fromJson(QByteArray(reinterpret_cast<const char*>(data + 9), len - 9)).object();
if (!data[8]) {
GUI_ERROR("feedback: command failed request=%llu reason=%s", (unsigned long long)request, qPrintable(state.value("error").toString()));
if (request) { m_pendingPoll.clear(); QMessageBox::warning(this, feedbackText("Polls and reactions"), state.value("error").toString()); }
if (request) {
m_pendingPoll.clear(); QByteArray reason = state.value("error").toString().toUtf8();
QMessageBox::warning(this, feedbackText("Polls and reactions"), feedbackText(reason.constData()));
}
return;
}
if (state.value("ch").toString() != m_currentChannelId) return;