Commit graph

153 commits

Author SHA1 Message Date
Bruno Windels 375d8b066c complete settings view model for logs ui 2022-06-15 11:13:46 +02:00
Bruno Windels a644621889 basic support for sending rageshake in view model 2022-06-14 18:46:02 +02:00
Bruno Windels 9755062563 fix error thrown during request when response code is not used 2022-04-07 10:35:00 +02:00
Bruno Windels a442b4b009 Merge branch 'master' into bwindels/create-room 2022-02-10 20:05:40 +01:00
Bruno Windels ff46d382ac adjust m.direct when creating a DM 2022-02-10 19:54:15 +01:00
RMidhunSuresh 28931f4103 Use async/await 2022-02-04 17:48:42 +05:30
RMidhunSuresh f7f32ac806 responseCodeReject may not exist 2022-02-04 17:39:52 +05:30
RMidhunSuresh 891375a885 Rename allowerErrors -> allowedStatusCodes 2022-02-04 16:35:47 +05:30
RMidhunSuresh 32af7e6f09 Make more changes
- make setter a method
- lazily create promise
2022-02-04 16:23:39 +05:30
RMidhunSuresh 3d8b9cce41 Fix responseCode in Request 2022-02-04 15:41:37 +05:30
RMidhunSuresh b6e1d4a7d5 Implement responseCode() 2022-02-03 19:41:14 +05:30
RMidhunSuresh 8a3c0afba6 Fix incorrect types 2022-02-03 19:41:11 +05:30
RMidhunSuresh 0ad0ecfcc2 Check response code instead of existence of props 2022-02-03 19:40:25 +05:30
R Midhun Suresh 2aad5546bf No need for Object.assign here either
Co-authored-by: Bruno Windels <brunow@matrix.org>
2022-02-03 19:40:25 +05:30
R Midhun Suresh 30cb9f6d15 Use includes instead of elaborate find
Co-authored-by: Bruno Windels <brunow@matrix.org>
2022-02-03 19:40:25 +05:30
RMidhunSuresh 5f11790f6b Object.assign is overkill here 2022-02-03 19:40:25 +05:30
RMidhunSuresh e8dbbd876c Give default values to parameters 2022-02-03 19:40:25 +05:30
RMidhunSuresh 5e93e048ab Don't cache GET requests 2022-02-03 19:40:25 +05:30
RMidhunSuresh bb6a885116 Specify what errors are ignored in options 2022-02-03 19:40:25 +05:30
RMidhunSuresh 420c12f202 Copy over username only if it exists 2022-02-03 19:40:25 +05:30
RMidhunSuresh fa2e2bc8f3 Allow register without providing username 2022-02-03 19:40:25 +05:30
RMidhunSuresh d76a059525 Temporary fix for 401 errors 2022-02-03 19:40:25 +05:30
RMidhunSuresh eb146830ba Implement registration endpoint 2022-02-03 19:40:25 +05:30
RMidhunSuresh 618d02d838 fetch registration flows 2022-02-03 19:40:25 +05:30
Bruno Windels 348de312f9 draft code in matrix layer to create room 2022-02-02 10:19:49 +01:00
Bruno Windels 8f4e3c62ce add hs endpoint for backup keys upload 2022-01-25 18:47:42 +01:00
RMidhunSuresh 0c42f53a2f Implement context endpoint 2022-01-06 12:07:06 +05:30
RMidhunSuresh b753507b8d WIP 2022-01-06 11:59:58 +05:30
RMidhunSuresh 734ecccb9c Use object instead of Record here 2021-12-03 17:34:23 +05:30
RMidhunSuresh e2abc312d3 Fix typescript errors 2021-12-03 11:48:01 +05:30
RMidhunSuresh d6378133d8 Remove length property 2021-12-03 11:40:26 +05:30
RMidhunSuresh 49a56efa82 Remove comment 2021-12-03 11:40:26 +05:30
RMidhunSuresh 640cd88b6e make type string 2021-12-03 11:40:26 +05:30
RMidhunSuresh 66b4f9bfe5 LogItem --> ILogItem 2021-12-03 11:40:26 +05:30
RMidhunSuresh 0541cf8f2b Change object to Record 2021-12-03 11:40:26 +05:30
RMidhunSuresh bf93bd79c9 types.js --> types 2021-12-03 11:40:26 +05:30
RMidhunSuresh f89b937ee7 Use object instead of Record 2021-12-03 11:40:26 +05:30
RMidhunSuresh 82de3c9867 Prefer type over interface 2021-12-03 11:40:26 +05:30
RMidhunSuresh b328c54da8 Change type from Ctor to Options 2021-12-03 11:40:26 +05:30
RMidhunSuresh e9cea73357 Remove comment 2021-12-03 11:40:26 +05:30
R Midhun Suresh 3fbf65355d Rename Ctor to Options
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-12-03 11:40:26 +05:30
RMidhunSuresh b5438f2ba8 Do not set content-length 2021-12-03 11:40:26 +05:30
RMidhunSuresh 4f43398db0 Fix promise resolve type 2021-12-03 11:40:26 +05:30
RMidhunSuresh 05121e32b1 Pull interface out for HomeServerApi 2021-12-03 11:40:26 +05:30
RMidhunSuresh a8870f2d24 Extract ctor types out 2021-12-03 11:40:26 +05:30
RMidhunSuresh 238b9aafb1 Convert replay.js to ts 2021-12-03 11:40:26 +05:30
RMidhunSuresh 2e6b909173 No need to pass undefined 2021-12-03 11:40:26 +05:30
RMidhunSuresh 4bdcafad4b Rename file to types.ts 2021-12-03 11:40:26 +05:30
RMidhunSuresh 69e67ad5ac Make more functions private 2021-12-03 11:40:26 +05:30
RMidhunSuresh 2dd050bd90 Change object to Record 2021-12-03 11:40:26 +05:30