Commit Graph

1130 Commits

Author SHA1 Message Date
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
cc7acae24c xmpp: Make JID parsing ignore whitespaces 2022-04-17 23:08:51 +02:00
2b79d7a491 xmpp: Fix issue with the connection being stuck on StartTLS 2022-04-17 23:06:38 +02:00
de9c81b50a xmpp: Add more debug statements 2022-04-17 23:06:25 +02:00
d1bdcc327c meta: Add missing xmlns declarations 2022-04-17 11:53:00 +02:00
65a5a3e283 service: Implement log out 2022-04-17 11:53:00 +02:00
112e23ba9a xmpp: Use the xml package for putting the data together 2022-04-17 11:01:32 +02:00
68f7b003fc style: Fix linter warnings 2022-04-15 23:40:44 +02:00
09a8d909b9 service: Show 'Idle' in the notification when we're not logged in 2022-04-15 23:34:39 +02:00
729abc2595 ui: Fix the conversation page being translucent if no background is set 2022-04-15 17:10:57 +02:00
2e995b366e meta: Fix pubspec sdk version constraints 2022-04-15 17:05:31 +02:00
9fecbd924e Merge branch 'chore/upgrade-dependencies' 2022-04-15 13:42:49 +02:00
97db5aefc3 meta: Fix issue with path_provider in the background service 2022-04-15 13:34:40 +02:00
9171112d6f wip: Migrate flutter_background_service to 2.0.0 2022-04-15 12:46:08 +02:00
fac8066dad meta: Set flutter_background_service to 0.2.2 2022-04-15 01:35:28 +02:00
05aeae6b62 meta: Fix path_provider
Does not seem to work due to newer flutter engine.
See
https://github.com/flutter/flutter/issues/99155#issuecomment-1060956399
2022-04-15 01:19:10 +02:00
9bbffbfb86 meta: Update lockfile 2022-04-15 00:36:43 +02:00
22a6d63898 meta: Pin all library versions 2022-04-15 00:33:59 +02:00
9c0da37ee5 meta: Pin flutter_background_service to 0.2.2 2022-04-15 00:27:22 +02:00
69b68eaa70 service: Fix issue with logging long strings 2022-04-15 00:25:05 +02:00
402f1ed72c service: wip: Upgrade flutter_background_service 2022-04-15 00:23:58 +02:00
c60ee2ee27 service: Give each [RosterItem] their avatar hash, if available 2022-04-14 23:29:40 +02:00
50473389e2 service: Fix logging being cut off in the terminal if its too long 2022-04-14 23:27:59 +02:00
8654c649b2 ui: Improve the avatar cropping implementation 2022-04-14 21:08:41 +02:00
59435d8a50 ui: Add a list of all shared media 2022-04-14 15:31:54 +02:00