fix: omitting from attribute not to wreck the stream

fix: build without kwallet
This commit is contained in:
Blue 2024-11-18 22:43:46 +02:00
parent 9a44ae1fa5
commit 3cce057545
Signed by: blue
GPG Key ID: 9B203B252A63EE38
3 changed files with 5 additions and 4 deletions

View File

@ -431,7 +431,7 @@ QMap<QString, QVariant> Core::MessageHandler::getChanges(Shared::Message& data,
}
QXmppMessage Core::MessageHandler::createPacket(const Shared::Message& data, const QDateTime& time, const QString& originalId) const {
QXmppMessage msg(acc->getFullJid(), data.getTo(), data.getBody(), data.getThread());
QXmppMessage msg(QString(), data.getTo(), data.getBody(), data.getThread());
QString id(data.getId());
if (originalId.size() > 0)

View File

@ -33,10 +33,10 @@ Core::Squawk::Squawk(QObject* parent):
state(Shared::Availability::offline),
network(),
isInitialized(false),
clientCache(),
#ifdef WITH_KWALLET
kwallet()
kwallet(),
#endif
clientCache()
{
connect(&network, &NetworkAccess::loadFileProgress, this, &Squawk::fileProgress);
connect(&network, &NetworkAccess::loadFileError, this, &Squawk::fileError);

View File

@ -137,12 +137,13 @@ private:
Shared::Availability state;
NetworkAccess network;
bool isInitialized;
ClientCache clientCache;
#ifdef WITH_KWALLET
PSE::KWallet kwallet;
#endif
ClientCache clientCache;
private slots:
void addAccount(
const QString& login,