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 722fe5a04628882b787d096942459961db159b06.

* Revert "Add sqlite3 migration"

This reverts commit d113b03f6495a4b8f8bcf158a3d00b510b4240cc.

* 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 Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
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 Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
directory_public.go Remove QueryBulkStateContent from current state server (#1404) 2020-09-07 12:38:09 +01:00
directory_public_test.go Implement ExtraPublicRoomsProvider for p2p demos (#1180) 2020-07-03 12:59:00 +01:00
getevent.go [readability] use event.StateKeyEquals where relevant and minor for-loop refactoring (#1339) 2020-08-25 21:04:35 +01:00
joinroom.go Return 200 on join before time out (#1493) 2020-10-07 15:29:14 +01:00
keys.go Implement claiming one-time keys locally (#1210) 2020-07-21 14:47:53 +01:00
leaveroom.go Make userapi responsible for checking access tokens (#1133) 2020-06-16 14:10:55 +01:00
login.go Extend device_devices table (#1471) 2020-10-09 09:17:23 +01:00
logout.go Remove device DB from clientapi (#1352) 2020-08-27 18:53:40 +01:00
membership.go Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
memberships.go Remove QueryRoomsForUser from current state server (#1398) 2020-09-04 15:58:30 +01:00
password.go Password changes (#1397) 2020-09-04 15:16:13 +01:00
peekroom.go Peeking via MSC2753 (#1370) 2020-09-10 14:39:18 +01:00
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 Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
room_tagging.go Refactor account data (#1150) 2020-06-18 18:36:03 +01:00
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 Make userapi responsible for checking access tokens (#1133) 2020-06-16 14:10:55 +01:00
sendtyping.go Remove QueryCurrentState from current-state-server (#1395) 2020-09-04 12:30:56 +01:00
state.go Send state after event, not current 2020-10-19 15:12:37 +01:00
threepid.go Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
userdirectory.go Remove QueryKnownUsers from current state server (#1393) 2020-09-04 11:46:01 +01:00
voip.go Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
whoami.go Make userapi responsible for checking access tokens (#1133) 2020-06-16 14:10:55 +01:00