Commit Graph

1130 Commits

Author SHA1 Message Date
3073321ecd style: Fix filename issues 2022-01-23 12:18:30 +01:00
317726c102 style: Convert some classes to [StatefulWidget]s 2022-01-23 12:11:51 +01:00
e49a115847 ui: Fix syntax error 2022-01-23 11:52:41 +01:00
6ba186cd6a style: Make all imports absolute 2022-01-21 17:48:20 +01:00
f8acf98ebd style: Spent 6h fixing linter warnings 2022-01-21 17:44:48 +01:00
cbce0fb3df xmpp: Factor out the double loops 2022-01-21 11:50:11 +01:00
13000dfdad docs: Update README 2022-01-21 11:39:45 +01:00
72db9039f8 test: Add tests for the XEP-0352 implementation 2022-01-21 11:36:12 +01:00
1b4872f016 xmpp: Improve tests and fix our first vulnerability
In order to test the [RosterManager], I decided to add a test to ensure
vulnerabilities like CVE-2015-8688 won't happen. But as it turns out,
I got the logic wrong in the [RosterManager] base implementation which
would've allowed a malicious actor to inject a roster push. oof.
2022-01-21 11:23:09 +01:00
dadd659eba xmpp: Remove a TODO 2022-01-21 09:39:12 +01:00
abadc0214f xmpp: Implement plain resource binding 2022-01-21 09:34:38 +01:00
f678f1b26d xmpp: Fix missing import 2022-01-21 09:02:05 +01:00
5abb3059bf xmpp: Re-implement read-only support of chat markers 2022-01-20 22:06:01 +01:00
c09184597c xmpp: Make StanzaHandler callbacks async 2022-01-20 17:55:26 +01:00
af458df136 xmpp: React to the capability node in disco#info requests 2022-01-20 17:38:11 +01:00
71357e1409 test: Fix SM test 2022-01-20 17:13:52 +01:00
2d05abf552 xmpp: Make sendEvent private 2022-01-20 17:12:31 +01:00
e476978639 xmpp: Move initial presence to the PresenceManager 2022-01-20 17:10:33 +01:00
57e04efb98 xmpp: Move sendMessage to MessageManager 2022-01-20 16:57:10 +01:00
a37ae65588 test: Fix them 2022-01-20 13:18:34 +01:00
868290baca xmpp: Add persistence overrides for RosterManager 2022-01-20 13:15:34 +01:00
cc2b837340 xmpp: Allow persistence overriding StreamManagementManager 2022-01-20 12:58:35 +01:00
7799de5030 meta: Use gitlint 2022-01-19 18:58:17 +01:00
136a1f0cef xmpp: Move CSI into its own manager 2022-01-19 18:55:38 +01:00
8daee01915 xmpp: Move roster functions into the RosterManager 2022-01-19 16:28:09 +01:00
adc9979df8 xmpp: Huge rework of stanza handling
Instead of putting everything into [XmppConnection], let's put
everything into its own [XmppManagerBase] base subclass.

- Improves testability
- Makes extensions easier
- Allows easier usage of lib/xmpp as its own library
2022-01-19 15:59:48 +01:00
4de3ac8d5f xmpp: Generate IDs using UUIDv4 2022-01-18 15:58:25 +01:00
7cf0a8a826 xmpp: Implement XEP-0115 2022-01-18 12:07:50 +01:00
725f195ef4 xmpp: Make the stream header completely XMLNode 2022-01-17 22:56:04 +01:00
4c87cae569 xmpp: Implement CSI 2022-01-17 22:46:23 +01:00
c1d9b50d8d xmpp: Listen to the error stream 2022-01-17 16:55:16 +01:00
58b3ce5d6e redux: Hide password on login 2022-01-17 15:38:03 +01:00
17b97d8c03 style: Small improvement 2022-01-17 14:13:54 +01:00
dd76e219ea xmpp: Improve the socket 2022-01-17 14:12:04 +01:00
54cf44706a xmpp: Make reconnecting work 2022-01-17 14:04:30 +01:00
05c8f40ae6 WIP: Fix crash when reconnecting 2022-01-16 21:43:33 +01:00
abb58b39c8 xmpp: Prepare network state watching 2022-01-16 21:29:01 +01:00
e2049bfa10 xmpp: Improve notification title
Show the conversation title if sender is in the user's roster, their
bare JID otherwise.
2022-01-16 18:16:12 +01:00
b95fc032b0 ui: Again fix issue with conversations not loading
Again: If we receive a message before first loading a
conversation, it won't load it on open.
2022-01-16 18:12:42 +01:00
eb744bc9a4 WIP: Add notifications 2022-01-16 18:03:17 +01:00
870869c3a1 test: Modularize the StubSocket 2022-01-16 13:33:52 +01:00
a384087c09 ui: Hackily fix account state not being loaded 2022-01-16 12:20:28 +01:00
01613853a6 service: Fix notification title not changing 2022-01-16 12:14:52 +01:00
e28f4482c1 ui: Fix messages having weird corners 2022-01-16 12:04:32 +01:00
2e27d5f790 main: Fix typo 2022-01-15 21:01:19 +01:00
4e88c6aaaa WIP: Re-implement sending messages 2022-01-15 20:19:26 +01:00
ac913116b8 WIP: Re-implement removing roster items 2022-01-15 20:04:25 +01:00
d45721a41e WIP: Fix receiving messages 2022-01-15 17:05:40 +01:00
d78088b096 ui: Oops... Better use a middleware 2022-01-15 17:00:03 +01:00
8571f70f05 ui: Make setting the current conversation work 2022-01-15 16:58:46 +01:00