[network/kaidan] src: AccountMigration: Use Kaidan's own namespace for exported client settings

Melvin Keskin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0811789b3f1c0de85d137b23488324ae7202c590 by Melvin Keskin, on behalf of Linus Jahn.
Committed on 22/07/2026 at 20:42.
Pushed by melvo into branch 'master'.

AccountMigration: Use Kaidan's own namespace for exported client settings

Kaidan's proprietary client settings were serialized under QXmpp's export
namespace (org.qxmpp.export). Use Kaidan's own namespace (im.kaidan.export)
for the client-settings element instead.

M  +4    -4    src/AccountMigrationController.cpp

https://invent.kde.org/network/kaidan/-/commit/0811789b3f1c0de85d137b23488324ae7202c590

diff --git a/src/AccountMigrationController.cpp b/src/AccountMigrationController.cpp
index fcdfc47d0..5a66f64ed 100644
--- a/src/AccountMigrationController.cpp
+++ b/src/AccountMigrationController.cpp
@@ -39,7 +39,7 @@ static constexpr QStringView s_client_settings = u"client-settings";
 static constexpr QStringView s_old_configuration = u"old-configuration";
 static constexpr QStringView s_roster = u"roster";
 static constexpr QStringView s_item = u"item";
-static constexpr QStringView s_qxmpp_export_ns = u"org.qxmpp.export";
+static constexpr QStringView s_kaidan_export_ns = u"im.kaidan.export";
 
 struct ClientRosterItemSettings {
     ClientRosterItemSettings() = default;
@@ -234,7 +234,7 @@ struct ClientSettings {
     static std::variant<ClientSettings, QXmppError> fromDom(const QDomElement &rootElement)
     {
         Q_ASSERT(rootElement.tagName() == s_client_settings);
-        Q_ASSERT(rootElement.namespaceURI() == s_qxmpp_export_ns);
+        Q_ASSERT(rootElement.namespaceURI() == s_kaidan_export_ns);
 
         const auto oldConfigurationElement = rootElement.firstChildElement(s_old_configuration.toString());
         const auto rosterElement = rootElement.firstChildElement(s_roster.toString());
@@ -277,7 +277,7 @@ struct ClientSettings {
 
     void toXml(QXmlStreamWriter &writer) const
     {
-        writer.writeStartElement(s_client_settings.toString());
+        writer.writeStartElement(s_kaidan_export_ns.toString(), s_client_settings.toString());
 
         // Old configuration
         oldConfiguration.toXml(writer);
@@ -305,7 +305,7 @@ AccountMigrationController::AccountMigrationController(QObject *parent)
         data.toXml(writer);
     };
 
-    QXmppExportData::registerExtension<ClientSettings, parseData, serializeData>(s_client_settings, s_qxmpp_export_ns);
+    QXmppExportData::registerExtension<ClientSettings, parseData, serializeData>(s_client_settings, s_kaidan_export_ns);
 }
 
 AccountMigrationController::~AccountMigrationController() = default;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.