Commit Graph

231 Commits (fa2da9e04849ccf2c37e3769d7fc776599186e2e)
 

Author SHA1 Message Date
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>
4 years ago
Timo Kösters 720d48bd67 Merge pull request 'get_state_events_for_key_route returns the content of the requested event instead of the all event.' (#95) from jbbouille/conduit:fix-get_state_events_for_key_route-returning-all-event into master 4 years ago
Jean-Baptiste Petit 1222289c75 get_state_events_for_key_route return the content of the requested event instead of the all event. 4 years ago
Timo Kösters 0a1c4f3649 Merge pull request 'Black list temporaly some room creation tests.' (#50) from jbbouille/conduit:blacklist_some_creation_room_tests into master 4 years ago
Jean-Baptiste Petit 75e75c3b2f Black list temporaly some room creation tests. 4 years ago
Timo Kösters 4c2c0e2458 Merge pull request 'Better notifications and fix redactions' (#44) from notification into master 4 years ago
timokoesters 5a47c75427
fix: make redactions permanent 4 years ago
timokoesters b519bc6962
fix: only show notifications for messages 4 years ago
Timo Kösters 3aa0c8ed25 Merge pull request 'Room visibility, aliases and redaction' (#40) from alias into master 4 years ago
timokoesters 4e507ef706
feat: room visibility and aliases 4 years ago
timokoesters 9c26e22ad7
improvement: load aliases from database 4 years ago
timokoesters 18bf67748c
feat: redaction 4 years ago
Timo Kösters 16538a6c16 Update 'README.md' 4 years ago
Timo Kösters 55842a0e57 Update 'README.md' 4 years ago
Timo Kösters 25ebde5af8 Merge pull request 'fix: /register lowercases user ids' (#28) from lowercase into master 4 years ago
timokoesters ca77c79222
fix: /register lowercases user ids
fixes #24
4 years ago
Timo Kösters dd80a8591d Merge pull request 'Get device_id from body instead of auth data' (#27) from gnieto/conduit:fix/create-device into master 4 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").
4 years ago
Timo Kösters d0e5a39d1d Merge pull request 'Move create room test into blacklist - fixes #23' (#26) from jbbouille/conduit:remove_create_public_room_test into master 4 years ago
Jean-Baptiste Petit 43ed80c6c2 Move create room test into blacklist - fixes #23 4 years ago
timokoesters 58683585cc
improvement: show more info in public rooms list 4 years ago
Timo Kösters 63c62a4afa Update 'README.md' 4 years ago
Timo Kösters 1096c2847b Merge pull request 'Access control' (#22) from control into master 4 years ago
timokoesters b6c0e9bfb2
feat: access control 4 years ago
timokoesters c8ba9dce01
feat: proper room creation 4 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>
4 years ago
timokoesters 1014388a9c
fix: one time keys are never removed 4 years ago
timokoesters 5d6542a8a6
improvement: video link in readme 4 years ago
timokoesters d95e8b4880
fix: problem with to-device for all devices 4 years ago
timokoesters 43478a5870
fix: send correct membership events when joining / creating rooms 4 years ago
timokoesters 8df2a1a072
improvement: add room topic to public room dir 4 years ago
timokoesters e0fccffde0
fix: changing avatar url now sends room events 4 years ago
timokoesters ada260bf42
fix: use png for thumbnails 4 years ago
Timo Kösters cf91996336 Merge pull request 'fix: riot sometimes freaks out when refreshing' (#18) from media into master 4 years ago
timokoesters eb4af85765
fix: riot sometimes freaks out when refreshing 4 years ago
Timo Kösters 108d8988d8 Merge pull request 'feat: image thumbnails' (#17) from media into master 4 years ago
timokoesters d544d28b6e
feat: image thumbnails 4 years ago
timokoesters 61f4f2c716
improvement: implement GET publicRooms 4 years ago
timokoesters 821c608c6a
feat: media 4 years ago
timokoesters 42ae433b25
fix: send devicekeyupdate users in /sync 4 years ago
timokoesters f0aed35ecf
improvement: user dir search also searches in displaynames 4 years ago
timokoesters 56dd6cb16f
improvement: get state 4 years ago
timokoesters 6215218c3c
fix: account data json 4 years ago
timokoesters 7fc71b3968
feat: end to end encryption 4 years ago
timokoesters 4fb79ebb4c
chore: update dependencies 4 years ago
timo 86e20e6401 Merge pull request 'fix: only allow valid usernames in /register' (#14) from fix-register into master 4 years ago
timokoesters d08f91d1c3
fix: only allow valid usernames in /register 4 years ago
Rudi Floren 00a9424719
feat: sytests 4 years ago
timokoesters 8e041f90dd
refactor: make cargo clippy happier 4 years ago
timokoesters 1dbde0e1c1
improvement: add option to get device id from token 4 years ago