dendrite/clientapi/routing
S7evinK bcb89ada5e
Implement read receipts (#1528)
* fix conversion from int to string yields a string of one rune, not a string of digits

* Add receipts table to syncapi

* Use StreamingToken as the since value

* Add required method to testEDUProducer

* Make receipt json creation "easier" to read

* Add receipts api to the eduserver

* Add receipts endpoint

* Add eduserver kafka consumer

* Add missing kafka config

* Add passing tests to whitelist

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Fix copy & paste error

* Fix column count error

* Make outbound federation receipts pass

* Make "Inbound federation rejects receipts from wrong remote" pass

* Don't use errors package

* - Add TODO for batching requests
- Rename variable

* Return a better error message

* - Use OutputReceiptEvent instead of InputReceiptEvent as result
- Don't use the errors package for errors
- Defer CloseAndLogIfError to close rows
- Fix Copyright

* Better creation/usage of JoinResponse

* Query all joined rooms instead of just one

* Update gomatrixserverlib

* Add sqlite3 migration

* Add postgres migration

* Ensure required sequence exists before running migrations

* Clarification on comment

* - Fix a bug when creating client receipts
- Use concrete types instead of interface{}

* Remove dead code
Use key for timestamp

* Fix postgres query...

* Remove single purpose struct

* Use key/value directly

* Only apply receipts on initial sync or if edu positions differ,
otherwise we'll be sending the same receipts over and over again.

* Actually update the id, so it is correctly send in syncs

* Set receipt on request to /read_markers

* Fix issue with receipts getting overwritten

* Use fmt.Errorf instead of pkg/errors

* Revert "Add postgres migration"

This reverts commit 722fe5a046.

* Revert "Add sqlite3 migration"

This reverts commit d113b03f64.

* Fix selectRoomReceipts query

* Make golangci-lint happy

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-09 18:46:11 +00:00
..
account_data.go Implement read receipts (#1528) 2020-11-09 18:46:11 +00:00
auth_fallback.go
capabilities.go Finish implementing the capabilities endpoint (#1449) 2020-09-29 10:06:59 +01:00
createroom.go KindOld (#1531) 2020-10-19 14:59:13 +01:00
deactivate.go Implement account deactivation (#1455) 2020-10-02 17:18:20 +01:00
device.go reject invalid UTF-8 (#1472) 2020-10-09 09:15:51 +01:00
directory.go
directory_public.go
directory_public_test.go
getevent.go
joinroom.go Return 200 on join before time out (#1493) 2020-10-07 15:29:14 +01:00
keys.go
leaveroom.go
login.go Extend device_devices table (#1471) 2020-10-09 09:17:23 +01:00
logout.go
membership.go Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
memberships.go
password.go
peekroom.go
profile.go KindOld (#1531) 2020-10-19 14:59:13 +01:00
rate_limiting.go Take write lock for rate limit map (#1532) 2020-10-16 15:44:39 +01:00
receipt.go Implement read receipts (#1528) 2020-11-09 18:46:11 +00:00
redaction.go KindOld (#1531) 2020-10-19 14:59:13 +01:00
register.go Extend device_devices table (#1471) 2020-10-09 09:17:23 +01:00
register_test.go
room_tagging.go
routing.go Implement read receipts (#1528) 2020-11-09 18:46:11 +00:00
sendevent.go KindOld (#1531) 2020-10-19 14:59:13 +01:00
sendtodevice.go
sendtyping.go
state.go Send state after event, not current 2020-10-19 15:12:37 +01:00
threepid.go
userdirectory.go
voip.go
whoami.go