Commit Graph

704 Commits

Author SHA1 Message Date
f9a62468d8 xmpp: Fix reply() not including any children 2022-06-26 12:05:54 +02:00
25be4bc177 xmpp: Fix awaited stanzas being bounced 2022-06-26 11:44:10 +02:00
0912cdf2b3 xmpp: Remove onBadCertificate code 2022-06-05 20:28:52 +02:00
0625f0596f style: Remove unused import 2022-06-05 20:27:04 +02:00
e64320a074 service: Remove state tracking from [MoxxyReconnectionPolicy]
Also... Use the policy...
2022-06-05 20:26:21 +02:00
0fc34649a7 xmpp: Fix _pendingAcks for multi-stanza acks
If we send 5 stanzas, we expect 5 acks. But if the server acks them all
at once, it won't work.
2022-06-05 17:19:20 +02:00
81e827dda0 feat: Implement a network-connection-aware reconnection
We don't need to do an exponential backoff when we know that
it won't work. So just idle until we are connected again.
2022-06-05 15:40:12 +02:00
aae126a3de xmpp: Add support for setting reconnection policies 2022-05-30 16:26:34 +02:00
dfacbca446 refactor: Make [SASLScramNegotiator] use a DFA 2022-05-13 14:10:01 +02:00
fc69261029 refactor: Move implies into moxlib 2022-05-13 14:01:05 +02:00
169457c9c9 test: Adapt to changes in [XmppManagerAttributes] 2022-05-07 23:48:51 +02:00
491c7e066e test: Adapt to changed in moxdns 2022-05-07 23:46:21 +02:00
68dda80c1f build: Use build_runner for the data classes and licenses 2022-05-07 21:56:02 +02:00
8217346399 feat: Use moxdns' federated plugins
Also replace the git repositories with a selfhosted
pub repository.
2022-04-30 16:23:45 +02:00
e89b360fed xmpp: Use the federated moxdns 2022-04-30 16:08:20 +02:00
689e115559 meta: Use moxplatform for platform-specific tasks 2022-04-28 21:43:01 +02:00
256447d16b meta: Ignore direnv 2022-04-23 20:39:19 +02:00
15eaccb822 xmpp: Handle ack timeouts 2022-04-22 23:12:20 +02:00
9f0ad970de xmpp: Ignore cap hash broadcasts from clients on our account 2022-04-22 23:11:40 +02:00
79f2b582b2 xmpp: Make the XEP-0030 name attribute optional 2022-04-21 14:43:40 +02:00
a5be79b0d4 xmpp: Move the ping management out of [StreamManagementManager]
This allows the socket to say whether whitespace pings are allowed
and whether it manages its own keepalives or not.
2022-04-20 22:57:30 +02:00
cc8b822e3e xmpp: Hopefully reduce the amount of times the connection just dies 2022-04-20 22:23:53 +02:00
e99e4ba540 test: Fix test naming 2022-04-20 20:52:51 +02:00
7e0d6194ce meta: Replace mutex with synchronized
It turnes out that [Mutex.protect] would sometimes just never
release the Mutex and thus deadlock the entire connection.
2022-04-20 20:52:07 +02:00
f9dc1346d7 xmpp: Do not bounce stanzas with a type of 'error' 2022-04-20 20:28:59 +02:00
226e0bcba2 xmpp: Fix Issue with stream management (And null-operator on null)
As it turns out, there is a race-condition in sendStanza, if the
response is fast enough here. So the solution is to simply put
_awaitingResponse behind a mutex lock and turn code accessing it
into a critical section.
2022-04-20 18:33:12 +02:00
81d40b4ee3 service: Cancel the stream subscription before listening 2022-04-20 13:08:05 +02:00
299e4fd80c xmpp: Fix _connectionCompleter not getting resolved after SASL failure 2022-04-20 13:02:22 +02:00
79dddebacb xmpp: Send messages with a type of 'chat', not 'normal' 2022-04-20 12:33:02 +02:00
9368a9d83b xmpp: Fix bouncing every presence back with an error 2022-04-20 12:32:40 +02:00
46ea8cb1a5 ui,service: Fix app stalling in debug mode 2022-04-19 16:12:54 +02:00
6d32ffadee style: Update gitlint 2022-04-19 16:03:01 +02:00
0c36207df8 service,xmpp: Fix roster not appearing 2022-04-19 16:02:50 +02:00
ba3da7ad31 meta: Fix init order between the service and the background data sender 2022-04-19 15:14:06 +02:00
8800be6423 service: Fix the app getting stuck in release mode
It turns out that a release build is much faster than a
development build. The issue was that the UI sent the
[PerformPreStartCommand] too early as the background service
still had work to do before being considered ready.

As a solution we now either wait for the event to arrive by
itself, as the service sends it at the end of its initilization, or
after an explicit request if the service is already running.
2022-04-19 13:30:56 +02:00
75fc24f79e xmpp: Redact sending of SASL nonzas 2022-04-18 17:12:22 +02:00
96a251ec87 xmpp: Add a test for XEP-0363 2022-04-18 13:23:25 +02:00
96009c9037 style: Make tests fit naming convention 2022-04-18 13:01:07 +02:00
e2ba266e64 style: Remove unused variable 2022-04-18 13:00:34 +02:00
9f4762b388 test: Finally fix the roster tests 2022-04-18 12:59:44 +02:00
45b5d51e10 style: Make _decoder const 2022-04-18 00:16:47 +02:00
5c8914f61d ui: Remove unused variable 2022-04-18 00:12:15 +02:00
08bc87e29e docs: Update README 2022-04-18 00:06:05 +02:00
3b28decb9f ui: Implement blocking from the top bar 2022-04-17 23:58:53 +02:00
e8b0b1d13e ui: Fix adding to roster instead unblocks the JID 2022-04-17 23:46:18 +02:00
3dffef1670 service: Move [setupBackgroundHandler] into events.dart 2022-04-17 23:42:32 +02:00
64d6fa9228 service: Add forgotten event handler 2022-04-17 23:40:28 +02:00
3c51a19636 xmpp: Remove _buffer from XmlStreamBuffer 2022-04-17 23:36:15 +02:00
e117e3d962 ui: Fix not being able to navigate to AddContactPage 2022-04-17 23:25:08 +02:00
4da2b13384 xmpp: Fix stream subscriptions not being ended if _socket == null 2022-04-17 23:09:23 +02:00