bitfl0wer
59be7b1cde
Removed empty lines of code
2023-05-09 14:04:34 +02:00
bitfl0wer
702cafc0f5
make token pub
2023-05-09 13:10:07 +02:00
kozabrada123
d1e8cb2d5c
Less spam debug log
2023-05-07 12:44:11 +02:00
bitfl0wer
11be031e98
Remove logged_in from User
2023-05-07 12:42:52 +02:00
bitfl0wer
54944fbb0e
Run clippy
2023-05-07 12:41:14 +02:00
bitfl0wer
8f3912c277
Remove unneccessary imports
2023-05-07 12:39:56 +02:00
bitfl0wer
b2fa6db492
Remove lifetime from Instance (see below)
...
Originally, it was planned, that the Instance object would store Users. I have identified, that this was not needed, as it goes beyond the scope of a library; Users of this library are expected to keep track of users themselves. The removal of this user storage also prevented further overcomplications.
2023-05-07 12:39:04 +02:00
kozabrada123
ebab5d4433
Was still a merge conflict there
2023-05-07 12:05:58 +02:00
kozabrada123
f14b7c0e49
Fix merge conflict
2023-05-07 12:04:46 +02:00
kozabrada123
ea6bacd7b8
Rethink websockets, fix thread blocks
2023-05-07 11:58:12 +02:00
bitfl0wer
50ecc78da0
add docs, add instance.get_user()
2023-05-07 11:54:49 +02:00
kozabrada123
d4a546efa3
Fix deserialization error
2023-05-07 11:47:12 +02:00
bitfl0wer
6b4251a3aa
Remove display impl, add default trait
2023-05-07 11:32:25 +02:00
bitfl0wer
014583216a
Impl user::get() function
2023-05-07 11:32:11 +02:00
Flori
22edeeb455
Merge pull request #31 from polyphony-chat/feature/sending-messages
...
Bring main up to date
2023-05-07 00:47:50 +02:00
Flori
52d62f5926
Merge pull request #30 from polyphony-chat/feature/users-retrieval-on-login-or-register
...
Feature/users retrieval on login or register
2023-05-07 00:40:24 +02:00
bitfl0wer
45e8fe6953
add test fn
2023-05-07 00:18:21 +02:00
bitfl0wer
c1bcd169f1
add users to mod.rs
2023-05-07 00:18:14 +02:00
bitfl0wer
621b05570a
remove nesting layer
2023-05-07 00:18:06 +02:00
bitfl0wer
222a552017
Add users to mod.rs
2023-05-07 00:17:54 +02:00
bitfl0wer
46a5f08b33
add pronouns
2023-05-06 22:47:31 +02:00
bitfl0wer
eb131be83b
add mod.rs
2023-05-06 22:47:26 +02:00
bitfl0wer
0e5a9caa44
Implement message sending (without attachments)
2023-05-06 22:24:23 +02:00
bitfl0wer
f067826889
change visibilities
2023-05-06 22:23:48 +02:00
bitfl0wer
c3cab53804
impl SendMessageSchema
2023-05-06 22:23:34 +02:00
bitfl0wer
b1b684e3b5
rename user rate_limits to limits for consistency
2023-05-06 18:52:24 +02:00
bitfl0wer
40bb3c38e9
Construct new message send method basics
2023-05-06 18:52:09 +02:00
bitfl0wer
b041433865
change message to messagesendschema
2023-05-06 18:34:38 +02:00
kozabrada123
4cfcf859a3
Add a debug to heartbeat thread
2023-05-06 11:14:38 +02:00
kozabrada123
4dd44efa38
Pub mod everything so it can be used as a library
2023-05-06 11:13:07 +02:00
kozabrada123
45a2dc0b2b
Update Websocket to fix premature closing w 1006
2023-05-06 10:39:58 +02:00
kozabrada123
1f8a38545b
Update types to fix deserialization errors
2023-05-06 10:39:16 +02:00
kozabrada123
d4be173854
Slight code cleanup
2023-05-06 08:39:41 +02:00
kozabrada123
8414bbb1c2
Fixed instance lifetime parameter
2023-05-05 22:46:00 +02:00
Flori
7ebf9e5cc0
Merge pull request #29 from polyphony-chat/feature/sending-messages
...
Bring main up to date
2023-05-05 22:10:43 +02:00
kozabrada123
bc3e93ce5a
Readd gateway to instance
2023-05-05 22:04:57 +02:00
bitfl0wer
fa0d74e9dd
remove redundant code
2023-05-05 22:00:37 +02:00
bitfl0wer
bae45254fe
start re-doing send()
2023-05-05 21:53:23 +02:00
bitfl0wer
1076c23403
Add DiscordFileAttachment, change visibilities
2023-05-05 21:53:00 +02:00
bitfl0wer
7a8eedd4c0
Add MessageSendSchema
2023-05-05 21:52:27 +02:00
kozabrada123
18590ff075
Fix encoding wrong
2023-05-05 20:58:00 +02:00
kozabrada123
867da4fd31
Remove the dumb test stuff I left in
2023-05-05 20:28:47 +02:00
kozabrada123
f612345484
Give websocket a send and receive channel
2023-05-05 20:26:51 +02:00
kozabrada123
ae062dfc17
Add temp debug, remove unused token
2023-05-05 19:42:31 +02:00
kozabrada123
9015538af5
Experimental sending to gateway
2023-05-05 19:23:57 +02:00
kozabrada123
50c4c1a542
Experimental heartbeats
2023-05-05 18:38:04 +02:00
kozabrada123
4446aef8e1
Update integers on some types
2023-05-05 18:37:52 +02:00
kozabrada123
c57122a94b
Add gateway Ready event
2023-05-05 16:08:12 +02:00
kozabrada123
07e500d063
Update data for existing events
2023-05-05 15:46:45 +02:00
kozabrada123
0f4e623acd
No need to serialize this
2023-05-05 15:39:11 +02:00