From b507eecdf1b2b3b3f24060ffcf7e5e4934954b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Wed, 17 May 2023 09:45:11 -0400 Subject: [PATCH] currentconversation: support new error code Change-Id: I391080b2de79414f04c5dd7b00b1d0d0865b3550 --- daemon | 2 +- src/app/currentconversation.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/daemon b/daemon index 6aa9751d2..7ef773529 160000 --- a/daemon +++ b/daemon @@ -1 +1 @@ -Subproject commit 6aa9751d201e533a988b06033b5d0945a775317c +Subproject commit 7ef7735297179bca2249bf757db7a88ce4dd5807 diff --git a/src/app/currentconversation.cpp b/src/app/currentconversation.cpp index e86344aed..891c21be5 100644 --- a/src/app/currentconversation.cpp +++ b/src/app/currentconversation.cpp @@ -324,12 +324,13 @@ CurrentConversation::updateErrors(const QString& convId) if (code == 1) { newErrors.append(tr("An error occurred while fetching this repository")); } else if (code == 2) { - newErrors.append(tr("The conversation's mode is un-recognized")); + newErrors.append(tr("Unrecognized conversation mode")); } else if (code == 3) { newErrors.append(tr("An invalid message was detected")); } else if (code == 4) { - newErrors.append( - tr("Not enough authorization for updating conversation's infos")); + newErrors.append(tr("Not authorized to update conversation information")); + } else if (code == 5) { + newErrors.append(tr("An error occurred while committing a new message")); } else { continue; } -- GitLab