Commit Graph

24 Commits (327140393f949ebf1c7025443896f3ef8c1efdc4)

Author SHA1 Message Date
Bram van den Heuvel 4b92d9ea20 Add new filter + VaultResult type 2023-11-03 22:45:09 +01:00
Bram van den Heuvel 4777de5b67 Improve complex data types using FastDict 2023-11-03 22:44:29 +01:00
Bram van den Heuvel 770423bcd2 LARGE refactor
This refactor is an improvement on the API architecture:

- Tasks are replaced by Cmd

- Tasks will now always succeed so the Vault can deal with the issues itself

- Failed tasks will be recorded so they can be re-attempted later

- The Snackbar now fully supports editing sub-parts of a data type.
2023-04-19 15:09:10 +02:00
Bram van den Heuvel 75971fec66 Add temporary events
The SDK now supports temporarily showing events before getting them from sync.

One example is to let users show the messages they sent themselves before the sync confirms that their events are on the timeline.
2023-04-05 13:57:25 +02:00
Bram van den Heuvel 70cbe5b682 elm-format 2023-04-05 12:50:15 +02:00
Bram van den Heuvel bc2d1a183b Add function to get username 2023-04-04 16:11:16 +02:00
Bram van den Heuvel ff84d70d7f Add internal account_data getter and setter 2023-03-31 16:23:14 +02:00
Bram van den Heuvel eb047e0bff Utilize /whoami for better token evaluation 2023-03-24 15:12:59 +01:00
Bram van den Heuvel c32a62c242 Get older messages from a chat 2023-03-22 15:22:57 +01:00
Bram van den Heuvel e0086daa59 Update login for all spec versions
The currently officially supported/legacy spec versions, at least.
2023-03-19 16:45:56 +01:00
Bram van den Heuvel 27b3fc562e Eliminate unused code 2023-03-14 22:31:55 +01:00
Bram van den Heuvel 92e9527854 Add complex functions for API endpoints
The Vault will now get an event after having sent it to see what it looks like.

If the user has an expired access token, the Vault will get a new token on the next sync.
2023-03-14 22:11:15 +01:00
Bram van den Heuvel 81a591383f Move phantom Context type to Internal/Tools folder 2023-03-13 13:53:26 +01:00
Bram van den Heuvel 9dec58b3d4 Refactor public types 2023-03-03 16:07:37 +01:00
Bram van den Heuvel 7e345c2b05 Connect internal Credentials, Room, Event
WARNING: contains a few syntax errors - still work in progress
2023-03-01 15:58:40 +01:00
Bram van den Heuvel 68d93180c1 Add PreApi for getting unavailable values 2023-03-01 11:21:22 +01:00
Bram van den Heuvel c844c94564 Finish files before API end functions refactor 2023-02-21 16:57:58 +01:00
Bram van den Heuvel 305a312b72 Add CredUpdate type 2023-02-17 15:08:57 +01:00
Bram van den Heuvel 045b67d77d elm-format 2023-02-17 11:10:03 +01:00
Bram van den Heuvel 1fcb754e55 Add documentation + add `sameForVersion` function 2023-02-09 18:57:56 +01:00
Bram van den Heuvel 4797ba2f93 Add new Elm types
I have had a few helpful Elm ideas and lessons while at FOSDEM, which may help the project in positive ways. For example, the fact that the file `Leaking.elm` exists, suggests that the code has a few downsides that may shine through when a refactor is made. For this reason, some features will be reworked and reprogrammed.

Luckily, Elm's homepage claims that this language is easy to refactor. :)
2023-02-08 16:52:54 +01:00
Bram van den Heuvel c673372534 Add `src/Internal/Api` 2023-01-09 16:57:25 +01:00
Bram van den Heuvel 206353b583 Add Exceptions 2023-01-05 06:47:41 +01:00
Bram van den Heuvel 49f73bac4f Add `src/Internal/Tools` folder 2023-01-05 06:20:34 +01:00