Commit Graph

3221 Commits

Author SHA1 Message Date
Linus Jahn 6fe82239fc
Merge pull request #570 from taiBsu/feature/jingle-message-initiation
XEP-0353: Jingle Message Initiation
2023-05-15 00:00:35 +02:00
Linus Jahn 85006abce0 JingleData: Fix doxygen warnings 2023-05-14 23:58:01 +02:00
Linus Jahn 8fc2225897 Jingle: Remove namespaceUri attribute 2023-05-14 23:58:01 +02:00
Tibor Csötönyi eab17404ec Code review fixes 2023-05-14 23:58:01 +02:00
Tibor Csötönyi fd1a242b15 Rename QXmppJingleIq.cpp/h to QXmppJingleData.cpp/h and test 2023-05-14 23:58:01 +02:00
Tibor Csötönyi a4dcd90685 Add XEP-0353: Jingle Message Initiation manager 2023-05-14 23:58:01 +02:00
Tibor Csötönyi 2fde987d39 Add XEP-0353: Jingle Message Initiation data classes 2023-05-14 23:58:00 +02:00
Tibor Csötönyi 44e9657c4e Extract JingleIq::Reason to own class and add serialization for JMI
Reason class will be used by JingleMessageInitiationElement as well
2023-05-14 23:51:42 +02:00
Tibor Csötönyi 4d0aaabef3 Extract JingleIq::Description to own class
Description will be used by JingleMessageInitiationElement as well
2023-05-14 23:51:42 +02:00
Linus Jahn fbb96a37f1 Replace some while loops over QDomElements 2023-05-13 17:45:25 +02:00
Linus Jahn 9a0af523a8 doap: Add new releases 2023-04-30 13:47:48 +02:00
Linus Jahn 19a3052f0f Merge branch '1.5' 2023-04-30 13:45:28 +02:00
Linus Jahn 5a5bebe82e Release QXmpp 1.5.5 2023-04-30 13:44:03 +02:00
Linus Jahn a0f5d085b4 Fix android build by explicitly specifying template parameter 2023-04-29 16:04:16 +02:00
Christophe Marin e759cf3ccb Fix the generated qxmpp pkgconfig files
The include directory and link targets changed.
Also add a backward compatible pkgconfig file for Qt5 builds.
2023-04-29 12:31:00 +02:00
Linus Jahn ab4bdf2da4
Merge branch '1.5' 2023-04-07 16:21:10 +02:00
Linus Jahn b44a7ee310
Release QXmpp 1.5.4 2023-04-07 16:19:03 +02:00
Linus Jahn b7cc4aed15
cmake: Omemo module: Respect BUILD_SHARED option
Fixes #563.
2023-04-07 16:07:56 +02:00
Melvin Keskin 9d08a60b85 OmemoManager: Emit 'deviceChanged()' for all changed devices 2023-04-07 16:01:23 +02:00
Melvin Keskin 40680cdc07 OmemoManager: Fix emitting 'deviceChanged()' 2023-04-07 16:01:23 +02:00
Melvin Keskin 7cdc35101d OmemoManager: Emit trustLevelsChanged() only when OMEMO keys have changed 2023-04-07 16:01:23 +02:00
Linus Jahn 7d1e74b514
Support installing QXmpp with Qt 5 and Qt 6 in parallel
Closes #540.
2023-04-07 15:58:12 +02:00
Linus Jahn 894299926d
tests: RosterManager: Fix wrong server to/from address 2023-04-07 15:35:22 +02:00
Melvin Keskin bf1fc75475 OmemoManagerPrivate: Use 'omemoEnvelope' consistently 2023-03-29 14:36:12 +02:00
Melvin Keskin e1e87c0164 OmemoManagerPrivate: Use optional OMEMO envelope directly 2023-03-29 14:36:12 +02:00
Melvin Keskin 33a5cd9944 OmemoManagerPrivate: Finish decryptMessage() if no SCE envelope can be found 2023-03-29 14:36:12 +02:00
Melvin Keskin 1e33e82e83 OmemoManagerPrivate: Fix check for singleton device list node 2023-03-29 14:36:12 +02:00
Melvin Keskin 7fdc30eaa2 Split identity key deserialization into separate methods 2023-03-29 14:36:12 +02:00
Melvin Keskin 43fc33d6d9 OmemoManagerPrivate: Reuse public identity key deserialization method 2023-03-29 14:36:12 +02:00
Melvin Keskin 2128e786c2 OmemoManager: Fix and extend method documentation 2023-03-29 14:36:12 +02:00
Linus Jahn c8e13f6fd3
README: Document QT_VERSION_MAJOR build option 2023-03-22 13:09:50 +01:00
Jonah Brüchert 2d232b7720 MamManager: Fix crash when reading .size() from a deleted QVector 2023-03-18 19:52:09 +01:00
Jonah Brüchert c935a3d0b1 QXmppOmemo: Fix ODR violation
I wrote the problematic code, so yay
2023-03-18 19:47:28 +01:00
Jonah Brüchert d1a95888d6 Fix missing exports with MSVC 2019
Fixes the Kaidan build with MSVC.

Weirdly enough, MSVC got confused on finding the matching overload for
<<, so I replaced it with push_back().
2023-03-18 18:52:54 +01:00
Linus Jahn 5424a01f39 Doxyfile: Remove old BuildConstants.h.in file 2023-03-18 00:22:37 +01:00
Linus Jahn 55362b2e36 Merge branch '1.5' 2023-03-17 17:24:52 +01:00
Jeremy Lainé 1cf0a4aff8 [tests] run tests on Windows 2023-03-17 15:09:34 +01:00
Melvin Keskin 67d75d5adc Stream: IQ handling: Accept responses without 'from' attribute (#556)
See https://xmpp.org/rfcs/rfc6120.html#stanzas-attributes-from-c2s point 3
2023-03-17 14:50:18 +01:00
Linus Jahn a811aeb01b
CarbonManagerV2: Don't set 'to' address of carbon enable IQ
RFC6120 says we MUST NOT set a to address for such stanzas.

From section 8.1.1.1.:

   2.  A stanza sent from a client to a server for direct processing by
       the server (e.g., roster processing as described in [XMPP-IM] or
       presence sent to the server for broadcasting to other entities)
       MUST NOT possess a 'to' attribute.
2023-03-14 23:31:52 +01:00
Linus Jahn 98abdcac77
Client: Fix empty to in IQs is interpreted as server domain
Empty to means account bare JID.
2023-03-14 23:31:51 +01:00
Linus Jahn 7bfb39fe1e
Client: Don't fill empty 'to' attributes of outgoing IQs 2023-03-14 23:31:51 +01:00
Linus Jahn 054b35de3e MamManager: Only parse ScePublic when decrypting messages
Message that are end-to-end-encrypted need to be parsed in ScePublic
mode and should then be decrypted.
In case the decryption fails, the messages are parsed in SceAll (the
normal mode).
2023-03-14 22:39:14 +01:00
Linus Jahn 154ac6b989 MamManager: Avoid shared_ptr for counting running jobs 2023-03-14 22:39:14 +01:00
Linus Jahn 672af91550 MamManager: Flatten retrieveMessages code 2023-03-14 22:39:14 +01:00
Linus Jahn fa45d75aaa MamManager: Move parsing from handleStanza() into new function 2023-03-14 22:39:14 +01:00
Linus Jahn 567b58a7a6 MamManager: Avoid possible use-after-move 2023-03-14 22:39:14 +01:00
Linus Jahn dfe4b2d275 MamManager: Create task before sending 2023-03-14 22:39:14 +01:00
Melvin Keskin bb9f20419c EME: Always send encryption name as fallback
Since QXmpp does not differentiate between different EME versions
receiving clients support, it is better to always send the encryption name.
It ensures that a name is displayed by the receiving client even if it
does not support the latest EME version introducing a new encryption.
2023-03-13 20:28:49 +01:00
Linus Jahn 867f74bd0c tests: Add EntityTimeManager test 2023-03-13 20:28:44 +01:00
Linus Jahn 4985e321d5 IqHandling: Fix use-after-move
Fixes #544.
2023-03-13 20:28:03 +01:00