[network/kaidan] src: AccountMigration: Export account data in XEP-0227 format

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

AccountMigration: Export account data in XEP-0227 format

Write the exported account data using XEP-0227 (Portable Import/Export
Format for XMPP-IM Servers) instead of QXmpp's own format. Reading back
still works for both formats since QXmppExportData::fromDom() detects the
format automatically, so previously stored exports are restored as before.

M  +1    -1    src/AccountMigrationController.cpp

https://invent.kde.org/network/kaidan/-/commit/09037dea7ccbe62395601fa703ee56aa3cb35e46

diff --git a/src/AccountMigrationController.cpp b/src/AccountMigrationController.cpp
index b5545fb33..fcdfc47d0 100644
--- a/src/AccountMigrationController.cpp
+++ b/src/AccountMigrationController.cpp
@@ -427,7 +427,7 @@ bool AccountMigrationController::saveAccountDataToDisk(const QString &filePath,
 
     QXmlStreamWriter writer(&file);
 
-    data.toXml(&writer);
+    data.toXml(&writer, QXmppExportData::Format::Xep0227);
 
     if (writer.hasError()) {
         file.remove();
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.