timokoesters
b4d65ab67d
improvement: optimize /sync response
6 years ago
timokoesters
0067f49d52
feat: close registration with ROCKET_REGISTRATION_DISABLED=true
6 years ago
timokoesters
c85d363d71
feat: user interactive authentication
6 years ago
Guillem Nieto
cc383ac932
Cargo fmt
6 years ago
Guillem Nieto
9269f009db
Allow client to load history on newly joined rooms
...
On /sync, check if a room is a new join between `since` parameter and
now. If it's a newly joined room, set the limited flag to true, which will force
the client to load room messages via the `/messages` endpoint.
On `master`, I could not reproduce the messages not showing to others
when joining after being invited.
Fixes #39
6 years ago
Jonas Platte
7526fd8602
Switch to the ruma meta-crate
6 years ago
timokoesters
d404f902bf
fix: send presence too often
6 years ago
timokoesters
32da76b9a2
feat: heroes, don't send notifications every time
6 years ago
timokoesters
b7f7a39973
feat: kick,ban,unban user route
6 years ago
timokoesters
a8df1acdfd
feat: load replies, forward pagination
6 years ago
timokoesters
168f2281fd
improvement: bundle typing events and only send on changes
...
Fixes #67 and #49
6 years ago
timokoesters
8328eeb5ac
Make sytest not fail
6 years ago
timokoesters
b192fddf2f
fix: show device display names
6 years ago
timokoesters
325e373684
refactor: small changes
6 years ago
timokoesters
19c9e4b916
fix: room version 6
6 years ago
gnieto
ed9b544ace
Implement devices API ( #20 )
...
small improvements
Cargo fmt
Simplify insert and update methods
Review feedback
Remove has_device method calls
Load all devices with a single db call
Remove device as in logout
Put all metadata on the same tree
Create userdevice key fucntion
Implement devices API
Implement all the devices endpoints. There's a couple of pending tasks:
- Integrate the "logout" logic once it lands to master (this should
remove the given device from the database).
- Track and store last seen timestamp and IP.
Co-authored-by: timokoesters <timo@koesters.xyz>
Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com>
6 years ago
Jean-Baptiste Petit
1222289c75
get_state_events_for_key_route return the content of the requested event instead of the all event.
6 years ago
timokoesters
5a47c75427
fix: make redactions permanent
6 years ago
timokoesters
b519bc6962
fix: only show notifications for messages
6 years ago
timokoesters
4e507ef706
feat: room visibility and aliases
6 years ago
timokoesters
9c26e22ad7
improvement: load aliases from database
6 years ago
timokoesters
18bf67748c
feat: redaction
6 years ago
timokoesters
ca77c79222
fix: /register lowercases user ids
...
fixes #24
6 years ago
Guillem Nieto
4b3b562347
Get device_id from body instead of auth data
...
Device_id was retrieved from the auth data instead of login's body and
this was causing that a new device was created on every login.
This is (I guess) provoking that some sytests are failing (for example,
"POST /login returns the same device_id as that in the request").
6 years ago
timokoesters
58683585cc
improvement: show more info in public rooms list
6 years ago
timokoesters
b6c0e9bfb2
feat: access control
6 years ago
timokoesters
c8ba9dce01
feat: proper room creation
6 years ago
josias
b106d1393b
Add logout route and database methods ( #21 )
...
Condense keys
Move remove methods to remove_device
Code cleanup
Add method for removing todevice events
Remove unnecessary existence checks
Add logout route and database methods
Co-authored-by: Josias <justjosias@tutanota.com>
6 years ago
timokoesters
1014388a9c
fix: one time keys are never removed
6 years ago
timokoesters
d95e8b4880
fix: problem with to-device for all devices
6 years ago
timokoesters
43478a5870
fix: send correct membership events when joining / creating rooms
6 years ago
timokoesters
8df2a1a072
improvement: add room topic to public room dir
6 years ago
timokoesters
e0fccffde0
fix: changing avatar url now sends room events
6 years ago
timokoesters
d544d28b6e
feat: image thumbnails
6 years ago
timokoesters
61f4f2c716
improvement: implement GET publicRooms
6 years ago
timokoesters
821c608c6a
feat: media
6 years ago
timokoesters
42ae433b25
fix: send devicekeyupdate users in /sync
6 years ago
timokoesters
f0aed35ecf
improvement: user dir search also searches in displaynames
6 years ago
timokoesters
56dd6cb16f
improvement: get state
6 years ago
timokoesters
6215218c3c
fix: account data json
6 years ago
timokoesters
7fc71b3968
feat: end to end encryption
6 years ago
timokoesters
4fb79ebb4c
chore: update dependencies
6 years ago
timokoesters
d08f91d1c3
fix: only allow valid usernames in /register
6 years ago
Rudi Floren
00a9424719
feat: sytests
6 years ago
timokoesters
8e041f90dd
refactor: make cargo clippy happier
6 years ago
timokoesters
1dbde0e1c1
improvement: add option to get device id from token
6 years ago
timokoesters
ee0d6940bd
feat: presence updates
6 years ago
timokoesters
551308e9a8
Update dependencies and send displayname updates again
6 years ago
timokoesters
8f67c01efd
refactor: split database into multiple files, more error handling, cleaner code
6 years ago
timokoesters
4b191a9311
improvement: set default push rules on register
6 years ago