David Baker
92c6332143
use more enums
2020-10-08 11:32:32 +01:00
David Baker
0df1a7da21
copyright header
2020-10-08 11:12:39 +01:00
David Baker
487a9c0967
Extract the call event handler out to its own class
...
and convert it to TypeScript
2020-10-08 11:10:20 +01:00
David Baker
fb89761671
Merge pull request #1495 from matrix-org/dbkr/age_is_just_a_number
...
Make an accurate version of 'age' for events
2020-10-08 09:29:16 +01:00
David Baker
d1d3ae074d
Add tests & fix some bugs found by said tests
2020-10-07 18:29:33 +01:00
David Baker
7dedaf90c3
Add a test for the age mangling
2020-10-07 18:04:20 +01:00
David Baker
687b98a09d
Don't add localTs if an event has no age
2020-10-07 17:39:19 +01:00
David Baker
c6b2e9873c
Merge pull request #1498 from matrix-org/dbkr/call_options_is_optional
...
Make 'options' parameter optional
2020-10-07 17:15:26 +01:00
David Baker
1e80491675
Make 'options' parameter optional
...
It's deprecated so generally nothing should be passing it
2020-10-07 17:08:21 +01:00
Michael Telatynski
a727da9193
Merge pull request #1497 from matrix-org/t3chguy/fix/14804
...
Create a giant event type enum
2020-10-07 16:48:39 +01:00
Michael Telatynski
0b7754581a
Update src/@types/event.ts
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2020-10-07 16:32:04 +01:00
David Baker
452e8ea385
Merge pull request #1494 from matrix-org/revert-1493-revert-1487-dbkr/tsify_call
...
Convert call.js to Typescript & update WebRTC APIs (re-apply)
2020-10-07 15:36:27 +01:00
David Baker
a189de9a2e
Add comment on mass event copying
2020-10-07 15:32:22 +01:00
David Baker
8632ca6e37
Merge remote-tracking branch 'origin/develop' into revert-1493-revert-1487-dbkr/tsify_call
2020-10-07 15:16:21 +01:00
J. Ryan Stinnett
f5240cdac6
Merge pull request #1467 from uhoreg/fallback_keys
...
Add support for olm fallback keys
2020-10-07 10:24:12 +01:00
Michael Telatynski
7529d2b638
Create a giant event type enum
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-07 09:57:56 +01:00
Michael Telatynski
03fc12e888
Merge pull request #1492 from matrix-org/t3chguy/fix/10545
...
Fix editing local echoes not updating them in real time
2020-10-07 00:15:16 +01:00
Hubert Chathi
e05a50528e
make test no longer dependent on emscripten internals
2020-10-06 19:01:01 -04:00
Hubert Chathi
356ee90417
lint
2020-10-06 18:33:45 -04:00
Hubert Chathi
5dced57724
bump olm release again and fix global.d.ts to work with the olm TS definitions
2020-10-06 17:55:40 -04:00
Michael Telatynski
8ec3b88c5d
Update comments
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 22:55:34 +01:00
Michael Telatynski
d7ef128510
Merge pull request #1491 from matrix-org/t3chguy/fix/9836
...
Fix re-emit of Event.replaced to be on client and not room
2020-10-06 22:50:14 +01:00
Hubert Chathi
bb2502409b
update yarn.lock
2020-10-06 15:34:02 -04:00
Hubert Chathi
aa6aab4245
Merge remote-tracking branch 'origin/develop' into fallback_keys
2020-10-06 15:22:25 -04:00
Hubert Chathi
12aab0caeb
depend on newer olm
2020-10-06 15:18:18 -04:00
David Baker
2f316c558d
Merge pull request #1496 from matrix-org/dbkr/space_in_log_line
...
Add space to log line
2020-10-06 19:16:25 +01:00
David Baker
f447273b75
Add space to log line
2020-10-06 18:59:34 +01:00
David Baker
c8a18d51e6
Lint (& unused variable)
2020-10-06 17:45:21 +01:00
David Baker
d77af1e67a
Make an accurate version of 'age' for events
...
We've always had 'age' in events but it's never really been an
accurate representation of the event's age because we never did
anything with it. This transforms it into a local clock timestamp
when the event arives and when it comes out of the sync store, and
changes getLocalAge() to use it.
react-sdk doesn't appear to use getLocalAge() but any 3rd party apps
that do may notice a slight change in bahaviour.
2020-10-06 15:24:09 +01:00
David Baker
81c95224d1
Revert "Revert "Convert call.js to Typescript & update WebRTC APIs""
2020-10-06 15:21:45 +01:00
David Baker
a0e66291df
Merge pull request #1493 from matrix-org/revert-1487-dbkr/tsify_call
...
Revert "Convert call.js to Typescript & update WebRTC APIs"
2020-10-06 15:21:38 +01:00
David Baker
5733f46f4c
Revert "Convert call.js to Typescript & update WebRTC APIs"
2020-10-06 15:16:32 +01:00
David Baker
da2128feff
Merge pull request #1487 from matrix-org/dbkr/tsify_call
...
Convert call.js to Typescript & update WebRTC APIs
2020-10-06 15:09:10 +01:00
Michael Telatynski
d413faefdb
double sync-browserify jest timeout
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 12:39:18 +01:00
Michael Telatynski
0d1d767d96
Fix editing local echoes not updating them in real time
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 12:32:50 +01:00
David Baker
5619554023
use MatrixEvent for event types
2020-10-06 11:03:05 +01:00
David Baker
53880a4bb2
This is how plurals work
2020-10-06 10:54:51 +01:00
David Baker
812ae227b6
Make type enums PascalCase
2020-10-06 10:53:42 +01:00
David Baker
c6b44098ac
remove space before type colon
2020-10-06 09:55:02 +01:00
David Baker
92b95a98d0
comment other snake case identifiers
...
and also sto mixing quotes
2020-10-06 09:52:59 +01:00
David Baker
a3505ff42d
Use right case for private enum field
2020-10-06 09:49:51 +01:00
Michael Telatynski
15b2e3ff1d
Fix re-emit of Event.replaced to be on client and not room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-10-06 08:23:19 +01:00
Hubert Chathi
1845d1ac55
Merge pull request #1436 from uhoreg/dehydration
...
Dehydrate and rehydrate devices
2020-10-05 17:19:28 -04:00
J. Ryan Stinnett
463819caa7
Merge pull request #1490 from matrix-org/jryans/key-setup-device-undefined
...
Keep local device after processing device list sync
2020-10-05 14:49:18 +01:00
J. Ryan Stinnett
a0317d9587
Fix tests
2020-10-05 14:29:30 +01:00
J. Ryan Stinnett
fa6ce0cb70
Keep local device after processing device list sync
...
This change ensure we always keep the local device in the device list, even if
the server claims it doesn't exist. This is important for initial startup, as it
is possible the device key upload takes a while to apply, and thus might not
appear in the first device list sync.
Fixes https://github.com/vector-im/element-web/issues/15319
2020-10-05 14:09:16 +01:00
David Baker
7471ff4b0d
Make setSinkId reliable
...
As per comment, this seems to be the way to make setSinkId work reliably on Chrome.
Also don't make our own mediastreams if we don't need to (ie. in a normal call
our tracks should come with their owen MediaStreams).
2020-10-03 16:57:33 +01:00
Hubert Chathi
65a5bfac88
update property name
2020-10-02 15:52:09 -04:00
David Baker
d2321410f8
Pass stream to addTrack too
...
Otherwise we end up with separate, unbundled 'streamless tracks'
which is not what we want.
2020-10-02 15:12:12 +01:00
Hubert Chathi
f90b5a99cd
Merge remote-tracking branch 'origin/develop' into dehydration
2020-10-01 21:55:05 -04:00