Commit Graph

101 Commits

Author SHA1 Message Date
7109a06b0c Add method to fetch messages
Co-authored-by: Elias Schriefer
2021-12-16 18:06:02 +01:00
d6e92943ba Fix broken newline in test-api.sh 2021-12-13 14:38:32 +01:00
be372352a4 Change port in test-api.sh back to 8080 2021-12-13 14:34:10 +01:00
f3b9e91040 Add sending messages to chats and groups 2021-12-12 22:52:11 +01:00
e192f2d8f9 Change seen_by in msgdata_template to not be null
The sender has always seen their message, haven't they?
2021-12-12 22:50:47 +01:00
ecdcbe6577 Add script for testing the API 2021-12-11 22:44:01 +01:00
5cc22bae82 Add listing group chats 2021-12-11 22:43:08 +01:00
9a52c072d3 Rename createUser to newUser for consistency 2021-12-11 18:45:48 +01:00
33ade65420 Add listing private chats 2021-12-10 22:56:13 +01:00
9bc103018e Change ID fields in SQL to be unique 2021-12-10 22:54:22 +01:00
a669c9cfd9 Add isUsernameUsed to query methods
Fixes #13
Have fun @David!
2021-11-25 16:05:26 +01:00
1e7b685f64 Add creating new group chats 2021-11-25 15:45:34 +01:00
bc50c13803 Add utility functions
- `user_authentication` returns Ok when authenticated successfully
- `user_exists` returns Ok when the passed user exists
2021-11-25 15:44:32 +01:00
c146516d76 change read to seen 2021-11-18 09:46:20 +00:00
566ed61126 add ability to save who has seen the massage 2021-11-18 09:45:39 +00:00
ba2b882ed6 Add creating new personal chats 2021-11-17 19:24:08 +01:00
5c8e72a733 Fix array formatting for SQL 2021-11-16 23:49:43 +01:00
0d9631b6c4 Merge branch 'main' of https://git.sfs.ddnss.org/WDG/noise-server 2021-11-15 14:27:31 +01:00
0c7fc1b6b7 Initialise chat index table 2021-11-15 14:26:57 +01:00
de45dcb1fc create chat index table 2021-11-15 14:24:57 +01:00
e0f0f66c5f Change username validation 2021-10-25 20:00:20 +02:00
146ad6a712 Fix typo 2021-10-25 18:16:55 +02:00
3aa59ac3e4 Merge branch 'main' of https://git.sfs.ddnss.org/WDG/noise-server 2021-10-25 18:16:19 +02:00
9608451145 Add create chat function
Co-authored-by: Elias Schriefer <EliasSchriefer@users.noreply.github.com>
2021-10-25 18:16:07 +02:00
39280f479c Add username validation 2021-10-25 17:47:51 +02:00
c52160ab69 Add msgdata SQL template
Co-authored-by: Elias Schriefer
2021-10-25 17:17:10 +02:00
3dfa8a1474 Update to Rust 2021 2021-10-23 19:29:51 +02:00
199e2169dc Move config init completely into config module 2021-10-23 17:59:17 +02:00
cc2a453c97 Add config/options for IP and port 2021-10-23 17:39:05 +02:00
c9a59f4731 Simplify some utility functions 2021-10-18 14:37:29 +02:00
3a35343a34 Fix #11 2021-10-18 14:36:11 +02:00
684dde255a Remove unused code and tests 2021-10-18 14:11:17 +02:00
54461e7934 Fix connection between GraphQL and SQL
At this point I don't even know where I started anymore.
At least it works and the code looks kinda nice.
This is something for future me. I need sleep.
2021-10-17 22:04:39 +00:00
15e9c596c2 Change all field names to camelCase in GraphQL 2021-10-17 17:09:06 +00:00
8d67300d5f Change return type of createUser to ID 2021-10-17 16:58:04 +00:00
b46715650b Add graphql field get_user_id
Given a username it will give you this user's ID
2021-10-17 16:28:50 +00:00
1ea3e5260c Add basic user adding functionality
What works:
- adding users
- default settings
- detect duplicate usernames
2021-10-16 23:52:58 +00:00
114bb63f45 Change RestrictionPolicy type to INTEGER in SQL
BLOB is not the way, we need something easy.
2021-10-16 21:55:37 +00:00
ce99469b3d streamline code 2021-10-04 14:05:40 +00:00
55557b604b Fix merge Issues 2021-10-04 12:35:44 +00:00
b8a12fcd42 Merge pull request 'inteligentsql' (#10) from inteligentsql into main
Reviewed-on: #10
2021-09-27 16:52:07 +02:00
6da1602759 Merge pull request 'getting warp to work' (#9) from start-the-warp-engine into main
Reviewed-on: #9
2021-09-27 12:54:18 +00:00
8522306298 getting warp to work
Co-authored-by: Elias Schriefer
2021-09-26 14:59:56 +00:00
d9531dc789 Add uuid to dependencies explicitly
In preparation for uuid generation
2021-07-27 19:15:51 +00:00
40abea11f0 Implement GraphQL logic for SQLite 2021-07-27 19:11:40 +00:00
bc8d204a71 Change id type in SQL to TEXT 2021-07-27 19:09:01 +00:00
8efd4036a6 Remove juniper-from-schema from dependencies 2021-07-21 08:25:15 +00:00
5fce7657f7 Add GraphQL juniper definitions 2021-07-21 08:23:14 +00:00
35519d69ca Add url to dependencies 2021-07-21 08:21:56 +00:00
db12059c1f Fix typo in noise.graphql 2021-07-21 08:20:36 +00:00