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
145fe58dd1
WIP: Fix message loading
2022-01-15 16:50:20 +01:00
65a71790b5
main: Fix some weird casting issue
2022-01-15 16:36:49 +01:00
a21f257a3e
repository: Fix small typo
2022-01-15 16:30:06 +01:00
a96f71db7f
WIP: Messages appear on the conversation screen
2022-01-15 16:29:12 +01:00
56f3089a01
WIP: Fix serialization issue
2022-01-14 23:47:55 +01:00
a5142bb6e0
xmpp: Add some comments
2022-01-14 21:52:19 +01:00
907caf20d7
WIP: Move the XMPP connection into a foreground service
2022-01-14 21:37:54 +01:00
a1588488cb
ui: Keep the message list scrolled
2022-01-11 14:41:53 +01:00