aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/parser/IqParser.java (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-25implement client support for muc pushChristian Schneppe1-1/+24
Staying connected to a MUC room hosted on a remote server can be challenging. If a server reboots it will usually send a shut down notification to all participants. However even if a client knows that a server was shut down it doesn’t know when it comes up again. In some corner cases that shut down notification might not even be delivered successfully leaving the client in a state where it thinks it is connected but it really isn’t. The possible work around implemented in this commit is to register the clients full JID (user@domain.tld/Conversations.r4nd) as an App Server according to XEP-0357 with the room. (Conversations checks for the push:0 namespace on the room.) After cycling through a reboot the first message send to a room will trigger pubsub notifications to each registered full JID. This event will be used to trigger a XEP-0410 ping and if necessary a subsequent rejoin of the MUC. If the resource has become unavailable during down time of the MUC server the user’s server will respond with an IQ error which in turn leads to the MUC server disabling that push target. Leaving a MUC will send a `disable` command. If sending that disable command failed for some reason (network outage) and the client receives a pubsub notification for a room it is no longer joined in it will respond with an item-not-found IQ error which also disables subsequent pushes from the server. Note: We 0410-ping before a join to avoid unnecessary full joins which can be quite costly. Further client side optimizations will also suppress pings when a ping is already in flight to further save traffic.
2018-12-27deduplicate disco responseChristian Schneppe1-2/+2
fixes #283
2018-06-17use Tor on http upload is account uses onion domainChristian Schneppe1-3/+4
2018-05-02return InvalidJid object instead of null if Jid can not be parsedChristian Schneppe1-3/+4
2018-04-12sync roster to disk after roster pushChristian Schneppe1-4/+3
2018-04-02migrate to xmpp-addrChristian Schneppe1-2/+2
2017-08-01fixed roster items w/o subscription (request) not being shownChristian Schneppe1-10/+8
2017-06-24upgrade to signal-protocol-javaChristian Schneppe1-4/+4
2017-05-31add the 4 most frequently contacted contacts as app shortcutsChristian Schneppe1-0/+1
2017-03-09closing the corresponding conversations after blocking a contactChristian Schneppe1-5/+5
2017-03-04rename the Xmlns class to NamespaceChristian Schneppe1-7/+7
2017-01-25fixed typoChristian Schneppe1-1/+1
2017-01-25fixed some issues around ibbChristian Schneppe1-1/+2
2016-11-29mark conversations as read after receiving blocklist push for that conversationChristian Schneppe1-0/+9
2016-11-19reformat codeChristian Schneppe1-326/+326
2016-10-08be more careful parsing integers in omemoChristian Schneppe1-2/+6
2016-08-11handle invalid prekey ids in bundleDaniel Gultsch1-3/+5
2016-07-29changed package id inside manifest and projectChristian Schneppe1-12/+12
2016-07-13respond to XEP-0202: Entity TimeDaniel Gultsch1-2/+14
2016-06-22respond to block list pushDaniel Gultsch1-0/+6
2016-06-05log all background stanzas when background logging is enabledDaniel Gultsch1-5/+0
2016-05-19resetting fetch status error when mutual subscription is reestablishedDaniel Gultsch1-1/+10
2016-05-15log incoming iq requestsDaniel Gultsch1-0/+5
2016-02-11catch all axolotl parse exception at once. fixes #1692Daniel Gultsch1-5/+4
2016-02-02catch a few NPE when parsing invalid pep nodesDaniel Gultsch1-3/+3
2015-12-13more detailed loggingDaniel Gultsch1-2/+1
2015-12-12more detailed loggingDaniel Gultsch1-2/+1
2015-10-16introduced code to verify omemo device keys with x509 certificates.Daniel Gultsch1-0/+29
cleaned up TrustKeysActivity to automatically close if there is nothing to do
2015-08-30catch invalid base64 on omemo key decodingDaniel Gultsch1-3/+8
2015-08-24catch invalid base64 in axolotl key parsingDaniel Gultsch1-1/+1
2015-08-23introduce special iq type for internal timeouts. always use != result to ↵Daniel Gultsch1-1/+1
check for error in callbacks
2015-08-23modified clearIqCallbacks into 2-step processDaniel Gultsch1-6/+6
2015-07-19Clean up loggingAndreas Straub1-7/+8
Add a fixed prefix to axolotl-related log messages, set log levels sensibly.
2015-07-19Return empty set on invalid PEP devicelistAndreas Straub1-18/+18
2015-07-19Migrate to new PEP layoutAndreas Straub1-7/+13
Merge prekeys into bundle node
2015-07-19Reformat code to use tabsAndreas Straub1-38/+38
This really sucks to do it like this. Sorry. :(
2015-07-19Added PEP and message protocol layersAndreas Straub1-1/+157
Can now fetch/retrieve from PEP, as well as encode/decode messages
2015-02-16support for XEP-0092: Software VersioniNPUTmice1-3/+5
2015-01-05avoid requesting blocklist after stream resumptionDaniel Gultsch1-0/+1
2015-01-04Verify IQ responsesSam Whited1-10/+3
Fixes #20 Move fromServer/toServer to AbstractStanza
2015-01-04Make IqPacket type an enumSam Whited1-7/+7
2014-12-30improved fromServer filterDaniel Gultsch1-1/+4
2014-12-30fixed #818Daniel Gultsch1-1/+1
2014-12-29Fix typo in method nameSam Whited1-2/+2
2014-12-23made method private that is no longer required to be publiciNPUTmice1-1/+1
2014-12-22Simplify roster handling codeSam Whited1-84/+69
Merge result handling code into IqParser Fixes #20
2014-12-22Add support for XEP-0191 (Blocking command)Sam Whited1-20/+87
Fixes #791 Squash of commits: 534f25d7dae3ce6852243e28fdd0a69ac01e9463 808fdf5147f27a912a60bee39aa4bf1ddd4f43b4 1eaf8a8330710ad35ba7c368e04f909af623ae4c 31585242c2359efdcd0eeddb9745077f54dbc9eb 2e69bd0bd0286ed1e98a42f4c3421ba4d8cf524b e904fb5015bf3a1904ab941a1957edf3b1e7abd2 eebbadf3b3816bbf8fcccb763e419fed252d266f 7c5b87724ce494e5a6e8026557ed50a8fd9f23e8 b0eaaf446937794fe19cbdb4f8309c3ff83d4e42 8c652f9e8bb3512958d9ad8c6f1326505f2d98c8 ad0ea1ad948ff6f8fde7b0b10f5163dc8852032f f5d49897e0dba691ef53a0eddb9ed34d129ad442 a08fa64c505bd895b7c626cfad182380373be20b de67079113e08394a276048c31f6b21baa300829 9069f342173ba30c2b20c67529c7ff497a6a257d 0169fa79d161ee898c4b6762e207087682a952d8 8585a5bd75a5d56927fed8317729bd15fffe4dcc 0053528a078369e0b65dcf71bda251072a1299c7 e901a9c3554bd7cca193e92919b463991eadfea7 c5c78257434813c69ab9b7558bcc8f7cbe858433 e905af348d46d77bc46b5f7211527684acc02fab 13a0f9a10c7892b0f90f5fabd2f2615701b0fd66 2cfba1e24b0139839e4453b92be7e20634d150cf 58e074fb5bb44b05a8104250fccd7c024c808c1a 0d6cf98fc8eab212d798ac79b336f9b70a14f06d e23620f56b85bcab9f3b5d9ce1c01524cd9674dc d72cd2fcc8d54176c3ff53411a69b9bb4642eff3 195143dff8836623a37094a6b8fa6aa01ef31580 5f5f3caf3a1e480a99d27ee5c34ba516419c52e4 1dee3d5861c9f9c710da4cbda3688d94c622ca93 23949b8aa32c78b27bab49bb3c4f3ff588925ce1 9bf97f8ae522796e0dacb7f6fe7a7f90f86a93a1
2014-12-19fixed #755iNPUTmice1-1/+1
2014-12-01fixed npe if roster jid couldnt be parsediNPUTmice1-8/+5
2014-11-17clear avatar cache with new roster push from serveriNPUTmice1-0/+2