[network/ruqola] src/rocketchatrestapi-qt: Add i18n for error-room-e2e-key-already-exists
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 18fa5282f8c90cc0df1100dcf1aa07e64bf3def1 by Laurent Montel.
Committed on 06/08/2026 at 17:35.
Pushed by mlaurent into branch 'master'.
Add i18n for error-room-e2e-key-already-exists
M +2 -0 src/rocketchatrestapi-qt/restapiabstractjob.cpp
https://invent.kde.org/network/ruqola/-/commit/18fa5282f8c90cc0df1100dcf1aa07e64bf3def1
diff --git a/src/rocketchatrestapi-qt/restapiabstractjob.cpp b/src/rocketchatrestapi-qt/restapiabstractjob.cpp
index 4ed2db4018..ead0d22a46 100644
--- a/src/rocketchatrestapi-qt/restapiabstractjob.cpp
+++ b/src/rocketchatrestapi-qt/restapiabstractjob.cpp
@@ -415,6 +415,8 @@ QString RestApiAbstractJob::errorMessage(const QString &str, const QJsonObject &
return i18n("Role name is required");
} else if (str == "error-room-is-not-closed"_L1) {
return i18n("Room is not closed");
+ } else if (str == "error-room-e2e-key-already-exists"_L1) {
+ return i18n("The room already has an end-to-end encryption key ID");
} else if (str == "error-the-field-is-required"_L1) {
const QString field = details["field"_L1].toString();
return i18n("The field '%1' is required.", field);