Commit graph

16 commits

Author SHA1 Message Date
Daniel Gultsch bf9b0b18f9
restructure build setup 2023-03-01 22:05:42 +01:00
Daniel Gultsch 35360fde91
modify XmppConnection to change status to online for unbound cons 2023-03-01 22:05:41 +01:00
Daniel Gultsch 405445afbe
store reference to inReplyTo in database 2023-03-01 22:05:40 +01:00
Daniel Gultsch be3a8dc5e1
insert message states (displayed, received, error) into DB 2023-03-01 22:05:40 +01:00
Daniel Gultsch 9b62861a64
store messages in database 2023-03-01 22:05:40 +01:00
Daniel Gultsch c077e4e8da
add PubSubManager, AvatarManager and AxolotlManager 2023-03-01 22:05:39 +01:00
Daniel Gultsch c31fa7ed2b
include parentNode in disco items table 2023-03-01 22:05:38 +01:00
Daniel Gultsch 359ef330df
get rid of upsert in favor of update and insert
upsert seems to only work with primary keys and not other
unique constraints.
2023-03-01 22:05:38 +01:00
Daniel Gultsch 1a09b3ed05
use empty string instead of null for 'no node' and 'no resource' 2023-03-01 22:05:37 +01:00
Daniel Gultsch 944c48e00b
store presence in DB 2023-03-01 22:05:37 +01:00
Daniel Gultsch 6458c6e9f9
store disco features after fetching them 2023-03-01 22:05:36 +01:00
Daniel Gultsch 482dc8cfe9
insert disco items into db 2023-03-01 22:05:36 +01:00
Daniel Gultsch 20962554a4
retrieve blocklist on bind 2023-03-01 22:05:36 +01:00
Daniel Gultsch 9e7bbcc272
offer alternative access to elements and children
instead of Element.findChild(name, namespace) we can now use
Element.getExtension(Extension.class) for registered extensions
2023-03-01 22:05:36 +01:00
Daniel Gultsch 7ee3e07946
Introduce XmppConnection v3
The various layers of the app are too intertwined to refactor them in place.

The C3 refactor is going to create a parallel architecture for all classes that
have too strong of a connection to other parts of the app.

This commit introduces XmppConnection v3 that keeps a lot of the logic of the
privous XmppConnection but cuts ties to XmppConnectionService and the very
stateful `entites.Account`. The latter is replaced by a lightweight immutable
account model.

The reconnection logic has been kept but was moved from XmppConnectionService
to a singleton ConnectionPool.
2023-03-01 22:05:35 +01:00
Daniel Gultsch 94dde9f433
initial set of Room entities 2023-03-01 22:05:35 +01:00