Commit graph

541 commits

Author SHA1 Message Date
SUMUKHA-PK 03e2de54cc Build issues resolved 2019-03-16 18:05:51 +05:30
SUMUKHA-PK 1321c5cad6 Suggested changes made 2019-03-16 17:55:46 +05:30
SUMUKHA-PK 0b8f040d16 Build errors resolved 2019-03-14 11:32:08 +05:30
SUMUKHA-PK 85edb4033d Suggested changes resolved (Comments, new lines, copyright) 2019-03-14 11:17:40 +05:30
SUMUKHA-PK 80b451df1b metricsName changed 2019-03-14 07:46:51 +05:30
SUMUKHA-PK 30f5a60e8c Linting errors resolved 2019-03-13 19:39:17 +05:30
SUMUKHA-PK 8cff3aca91 Solved linting problems 2019-03-13 19:33:54 +05:30
SUMUKHA-PK 90cc575962 Build errors resolved 2019-03-13 18:19:02 +05:30
SUMUKHA-PK 98de4e7c05 Issue #657 reolved. 2019-03-13 14:59:38 +05:30
SUMUKHA-PK 3da25ee318 Get seems to be done 2019-03-12 21:19:10 +05:30
SUMUKHA-PK 00840e35db Deletion seems to be complete 2019-03-12 21:16:43 +05:30
SUMUKHA-PK 9f7b1290af Interface approach removed, map approach added 2019-03-12 19:52:11 +05:30
SUMUKHA-PK b15a444404 Put Tag almost done. Get and Delete Tag in progress 2019-03-12 18:25:11 +05:30
SUMUKHA-PK 795bb5b6f8 Some progress in building roomtags 2019-03-11 10:26:12 +05:30
SUMUKHA-PK 7832e77f4f Merge branch 'master' of https://github.com/matrix-org/dendrite 2019-03-08 11:37:59 +05:30
SUMUKHA-PK 7f868d14ea Basic skeleton in progress 2019-03-08 11:35:00 +05:30
Alex Chen 5d2d0484d1 Fix build conflict between docker environment and host - #596 (#598)
Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-03-04 14:47:29 +00:00
Sumukha Pk 6baaf8c36c Improved clarity for setup in INSTALL.md (#691)
* Improved clarity for setup in INSTALL.md
2019-03-04 14:26:30 +00:00
SUMUKHA-PK e89c2db92b Suggested changes resolved 2019-03-04 19:55:04 +05:30
SUMUKHA-PK c2d23d3290 Suggested changes resolved 2019-03-04 19:48:23 +05:30
SUMUKHA-PK fd284a8a68 Suggested changes resolved 2019-03-04 17:57:48 +05:30
SUMUKHA-PK b0f8bdb6f7 Suggested changes resolved 2019-03-04 17:25:52 +05:30
SUMUKHA-PK 3f9f718e3c Suggested changes resolved 2019-03-04 17:24:53 +05:30
SUMUKHA-PK 4387462892 Suggested changes resolved 2019-03-04 17:21:24 +05:30
SUMUKHA-PK 59ab0a5c67 Suggested changes resolved 2019-03-04 17:12:40 +05:30
SUMUKHA-PK 2644bc1464 Suggested changes resolved 2019-03-04 17:09:29 +05:30
SUMUKHA-PK 3575ef1080 Improved clarity for setup in INSTALL.md 2019-03-03 18:32:50 +05:30
Andrew Morgan ce9f3ea362
Bump to go version 1.10 (#690) 2019-01-31 11:14:16 +00:00
Aaron Raimist 76a81e51b3 Remove riot.im from the list of trusted ID servers in the default config (#688)
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-01-31 10:06:11 +00:00
Andrew Morgan 0d6d72631b
Add matrix chatroom badge to readme (#689)
* Add matrix chatroom badge to readme

* Update URLs and add dendrite:matrix.org
2019-01-28 15:10:44 +00:00
Aaron Raimist ac3ebcb3ed Fix PR templates and use matrix.to instead of riot.im/develop (#687)
* Use absolute links in pull request template

Relative links don't work in most places

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Use matrix.to (for now) instead of linking to riot.im/develop

Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-01-28 10:15:33 +00:00
Andrew Morgan 4452cb4a65
Add PR template (#686) 2019-01-25 16:00:59 +00:00
MANASSE 3465f6727b "v1" replaced with "r0" in pathPrefixR0 in mediaapi's routing (#681) 2019-01-17 09:25:13 +00:00
Alex Chen 4c5bd91e1c POST /join/{roomId}: Allow joining even when not invited #663 (#680)
* POST /join/{roomId}: Allow joining even when not invited #663

Signed-off-by: Alex Chen <minecnly@gmail.com>

* POST /join/{roomId}: Use server in roomID as last resort to join

Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-01-15 18:20:46 +00:00
Alex Chen e063433b74 Fix POST /get_missing_events/{roomId} #622 (#678)
* Fix #622 /get_missing_events/{roomId}

Signed-off-by: Alex Chen <minecnly@gmail.com>

* Set initial size for eventsToFilter in /get_missing_events/{roomId}

Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-01-14 10:20:19 +00:00
Reto 088a939461 Fix default timeout for /sync (#615) (#679)
The sync timeout should be 0 according to the spec[1]

[1] https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-sync

Signed-off-by: Reto Brunner <brunnre8@gmail.com>
2019-01-10 10:28:13 +00:00
Brendan Abolivier 170264404e
Fix the sync api returning an empty sync response when reaching timeout, regardless of the since token (#595)
* Fix the sync api returning an empty sync response when reaching timeout, regardless of the since token

* Declare syncData from the start to avoid declaration shadowing

* Bump Kafka version
Since this is a huge bump, it might completely blow up - I'll revert it if that's the case

* Put the loop and the IsEmpty() check back in sync handler

* Add doc and allow returning if timeout is reached
2018-12-18 17:56:08 +00:00
Brendan Abolivier 2133e6bf59
Bump dependencies (#592)
* Bump dependencies

* Fix missing dependencies that were not previously fetched
2018-11-12 10:21:15 +00:00
Brendan Abolivier 8b0f60a470
Fill the prev_batch property in responses from /sync (#589)
* Fill the prev_batch property in responses from /sync

* Set prev_batch to 1 (first possible value in the sequence) if it's about to hit 0
2018-11-08 15:11:11 +00:00
Brendan Abolivier 83c3c7e1db
Fix the ordering of events in a response to /sync (#588) 2018-11-07 19:12:23 +00:00
Brendan Abolivier 56058b9469
Implement the /backfill federation endpoint (#585)
* Implement the /backfill federation endpoint

* Make the BFS loop block common between QueryMissingEvents and QueryPreviousEvents

* Improve comments on the BFS loop block

* Optimisation: prevent unnecessary redefinitions/reallocations

* Add trailing slash at the end of the route for parity with synapse

* Replace QueryPreviousEvents with QueryBackfill

* Change the backfill response to comply with the specs and synapse's behaviour
2018-11-07 11:38:01 +00:00
Matthew Hodgson daf57b19b7 make docker work on current codebase (#584) 2018-11-06 18:14:39 +00:00
Brendan Abolivier 8ff136e595
Fix interactive registration failing (#583)
* Fix interactive registration failing because of being confused with AS registration

* Fix AS registration tests

* Move AS registration handling to dedicated function and split the switch/case to avoid unnecessary condition

* Ignore handleRegistrationFlow() for gocyclo and add some doc/comments on the code
2018-11-06 14:40:37 +00:00
Zero King 1a82e6bc58 Add Go 1.11 to .travis.yml (#580) 2018-09-04 18:20:30 +01:00
Zero King a0b38a6f2b Fix typo (#579) 2018-09-01 09:31:47 +01:00
krombel b71d922a72 Propagate error with wrong ?ts= param back to client (#576)
* make MatrixError implement error interface

* let ParseTSParam return error when no int transmitted

* fix to high cyclo for SendEvent

* Move generateSendEvent below SendEvent

* Drop ParseIntParam() as it is used only in one place

* Parse ts param at the beginning of JoinRoom

to be able to abort right in the beginning and
to not parse the MatrixError to get an error response

* make ParseTSParam() return error instead of JSONResponse
2018-08-22 13:40:25 +01:00
Andrew Morgan 0b5ae4692e Make use of /users/{userID} in relevant APIs (#522)
* Query whether a room alias exists on app services

Signed-off-by: Andrew Morgan <andrewm@matrix.org>

* Query AS /alias/ API at a lower level

* Add support for querying /users/ on appservices

* Have endpoints query AS users if not found locally
2018-08-20 10:45:17 +01:00
Andrew Morgan 2382d363ab Include appservice namespace in username available check (#504)
Signed-off-by: Andrew Morgan <andrewm@matrix.org>
2018-08-20 10:23:01 +01:00
mohit kumar singh d07a652d8e return same device as sent from client if it exists in db (#414)
Signed-off-by: mohit kumar singh <mohitkumarsingh907@gmail.com>
2018-08-20 10:22:06 +01:00
Anant Prakash 5d52863b9f
[Federation] Send typing events (#572)
* GetJoinedHosts from federation server db

* Add dummy api.OutputTypingEvent

* Add a typing server consumer to federation sender

* Update queue to support EDU events

* Update OutputTypingEvent format

* Use SendEDU in federation server, remove dummy/api

* Add helpful comments

* fix typo

* remove origin field

* Count EDUs in sendCounter
2018-08-10 20:56:57 +05:30