Commit graph

46 commits

Author SHA1 Message Date
LDA
368690aaeb [ADD/WIP] Start adding kicks
Doing that actually did make me find flaws in my room implementation, so
that's good.
2024-08-18 00:12:55 +02:00
LDA
cc5c4bde70 [MOD] Spoof some endpoints 2024-08-14 21:36:51 +02:00
LDA
e2d26c7f33 [ADD/WIP] Start /messages, sync timeouts, cleaning
This code _really_ isn't good. I've spotted some fun racing happen and
leak of some JSON(somehow?) without timeout, and I've been trying to
spend the last several days trying to fix that.

The good news is that, with some endpoint spoofing, you can actually
_try_ this with a Matrix client(dev.cinny.in for example).

I might consider rewriting this pastacode, considering the issues noted
above in favour of a better design, with less odds of this.
2024-06-14 23:30:35 +02:00
LDA
046a04e495 [WIP] Start making (broken) /syncs
This code is *really* ugly. And it also doesn't handle timelines.
2024-06-09 03:20:09 +02:00
LDA
88610a3238 [ADD/WIP] Start basic work on getting room lists.
I think I should actually update by "catching" events on-the-fly instead
of doing this.
2024-06-08 15:49:31 +02:00
LDA
9203ec1268 [MOD] Join rooms via alias 2024-06-08 11:57:52 +02:00
lda
250d28b958 [UNTESTED/WIP] Room joins
Still have to test this.
2024-06-08 10:31:21 +02:00
lda
6ce63b01ce [ADD/WIP] Basic means to view a room event. 2024-06-08 09:34:27 +02:00
lda
e268471dba [ADD/WIP] Start work to send messages
This commit *works*  but I don't quite like it.
2024-06-07 18:24:13 +02:00
f83be63d53 Add CONTRIBUTORS.txt and make a note of it in the LICENSE.txt and documentation. 2024-01-05 18:57:19 -05:00
lda
af4fd5dceb Update licensing text for 2024 ()
Co-authored-by: Jordan Bancino <jordan@bancino.net>
Reviewed-on: 
Co-authored-by: lda <lda@freetards.xyz>
Co-committed-by: lda <lda@freetards.xyz>
2024-01-04 19:32:03 -05:00
2d30719be4 Implement Registration Token Administrator API ()
This pull request fully implements and documents all of the registration token administrator API endpoints.

**NOTE:** There is a memory leak when listing all of the registration tokens. Debug this before merging.
 
~~Closes~~ Supersedes .

Closes .

This pull request is based off of , which addresses . This pull makes a number of improvements to the logic, organization, and behavior of the API endpoints.

Co-authored-by: hatkid <daichi93100@gmail.com>
Co-authored-by: LoaD Accumulator <lda@freetards.xyz>
Co-authored-by: LoaD Accumulator <lda@noreply.git.telodendria.io>
Co-authored-by: lda <lda@freetards.xyz>
Co-authored-by: Load Accumulator <lda@freetards.xyz>
Reviewed-on: 
2023-11-10 09:30:53 -05:00
1fee47a628 Use Makefiles instead of a custom script ()
This pull request also requires the use of the external [Cytoplasm](/Telodendria/Cytoplasm) repository by removing the in-tree copy of Cytoplasm. The increased modularity requires a little more complex build process, but is overall better. Closes 

The appropriate documentation has been updated. Closes 

---

Please review the developer certificate of origin:

1. The contribution was created in whole or in part by me, and I have
the right to submit it under the open source licenses of the
Telodendria project; or
1. The contribution is based upon a previous work that, to the best of
my knowledge, is covered under an appropriate open source license and
I have the right under that license to submit that work with
modifications, whether created in whole or in part by me, under the
Telodendria project license; or
1. The contribution was provided directly to me by some other person
who certified (1), (2), or (3), and I have not modified it.
1. I understand and agree that this project and the contribution are
made public and that a record of the contribution&mdash;including all
personal information I submit with it&mdash;is maintained indefinitely
and may be redistributed consistent with this project or the open
source licenses involved.

- [x] I have read the Telodendria Project development certificate of
origin, and I certify that I have permission to submit this patch
under the conditions specified in it.

Reviewed-on: 
2023-11-01 12:27:45 -04:00
LoaD Accumulator
cb41716bf3 Implement ()
Implements .

Co-authored-by: LoaD Accumulator <lda@freetards.xyz>
Co-authored-by: Jordan Bancino <jordan@bancino.net>
Reviewed-on: 
Co-authored-by: LoaD Accumulator <lda@noreply.git.telodendria.io>
Co-committed-by: LoaD Accumulator <lda@noreply.git.telodendria.io>
2023-09-25 09:39:21 -04:00
69d28f39d1 Begin working on room aliases.
These endpoints will help me build out some functionality that will be
needed when actually implementing rooms.
2023-08-09 15:19:45 +00:00
e0af88145e Add RouteCreateRoom stub. 2023-08-08 15:11:50 +00:00
f9e1250d47 Begin working on filtering. 2023-06-17 19:09:06 +00:00
0b11b97022 Add StrEquals(), as equality checking is the most common use for strcmp().
This allows us to get rid of the hideous MATRIX_PATH_PART_EQUALS macro,
and prevents inconsistent usage of strcmp() (for example, !strcmp() vs
strcmp() == 0).

StrEquals() also has sensible behavior for dealing with NULL strings (it
doesn't just segfault like strcmp()).
2023-05-06 22:34:36 +00:00
2a87583d2f Add /_matrix/client/v3/account/deactivate 2023-05-06 22:06:23 +00:00
f819093b7d Don't spew unknown expression warnings if @suppress-warnings is set. 2023-04-29 15:28:42 +00:00
b70c3f0bed Finish converting all existing documentation. Next up is writing new docs. 2023-04-29 02:54:49 +00:00
098eed44a0 Fix bug in MatrixWellKnown(), begin /_matrix/client/v3/capabilities 2023-04-25 18:37:25 +00:00
6a5d89e14b Work on implementing user interactive authentication fallback. 2023-04-21 02:13:06 +00:00
ffeb45375e Implement /_telodendria/admin/privileges
Note that it's not exactly as the proposal defines it; theres a bit more
nuance that will be documented soon.
2023-04-19 18:52:05 +00:00
0cca38115a Move configuration to database, add process control API, fix memory leaks. 2023-04-19 00:33:38 +00:00
6ca1265076 Begin working on User-Interactive authentication fallback. 2023-04-15 02:36:28 +00:00
e882693c78 Add route for requestToken endpoints. 2023-04-14 23:59:40 +00:00
b21d018daa Move router building function into a more sensible location. 2023-04-14 21:37:00 +00:00
83971dfaff Refactor routing system to use HttpRouter. 2023-04-14 21:20:56 +00:00
a90f7c4b9e Apply 2023-04-14 17:50:14 +00:00
eef615fc9a Fix warnings in RouteChangePwd.c 2023-03-28 02:28:58 +00:00
9b21e2460a Accept : Add the password modification endpoint. 2023-03-28 01:17:47 +00:00
6ee1857f5f Format source code. 2023-03-16 12:29:38 +00:00
ae97d8116c Apply : Registration tokens. 2023-03-14 00:37:24 +00:00
8ead9cc93a Apply , make some general bug fixes. 2023-03-10 03:24:04 +00:00
36169181dd Build basic framework for creating static pages.
The login fallback, as well as the user-interactive authentication
fallbacks, are static HTML pages.
2023-02-28 16:51:40 +00:00
b99e8bd1cd Apply modified and fix some misc. bugs. 2023-02-23 15:13:39 +00:00
d255ce1a21 Begin working on refresh route. 2023-02-16 17:22:59 +00:00
e0f7c133d1 Add a non-JSON landing page. This is the basis for other HTML pages. 2023-01-17 20:29:16 +00:00
3c8d89a52e Update copyright year 2022-12-26 15:52:52 +00:00
0305ef183d Begin work on RouteRegister 2022-12-14 15:40:23 +00:00
aaa97f8752 Format code 2022-12-13 13:24:54 +00:00
e17b64dcb2 Document Routes 2022-12-12 17:34:59 +00:00
d56aaa921d Fully abstract route paths, move them to Routes.h. 2022-12-11 00:14:22 +00:00
8acc21db7c Add RouteLogin() 2022-12-10 15:41:33 +00:00
45324ce77a Implement /_matrix/client/versions and /.well-known/matrix/client 2022-09-29 13:41:26 -04:00