Commit graph

125 commits

Author SHA1 Message Date
Šimon Brandner
0bf2b01f84
Keep PiP in the window when resizing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 18:11:02 +02:00
Šimon Brandner
be2da6376e
Simplifie translation code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 17:49:55 +02:00
Šimon Brandner
d8d380c74d
Always keep the PiP CallView on the screen
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 17:22:45 +02:00
Šimon Brandner
f93ff1c8ae
Add semicolons to event listeners
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 15:43:13 +02:00
Šimon Brandner
2c9231641b
Add ref to callViewWrapper
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 15:40:59 +02:00
Šimon Brandner
76f503666c
Add default offset
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 15:40:12 +02:00
Šimon Brandner
0851cf4415
Simplifie things
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 15:16:08 +02:00
Šimon Brandner
adcdd72a08
preventDefault() and stopPropagation() only if moving
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 15:07:25 +02:00
Šimon Brandner
7042eb38dd
Listen for mouseup on the document
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 08:12:54 +02:00
Šimon Brandner
51e80dd172
Remove onMoving listner from CallView
This is not necessary since we already listen for it in CallPreview

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-03 07:50:21 +02:00
Šimon Brandner
fca5347668
Add preventDefault() and stopPropagation()
This avoids text being selected while dragging

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 21:17:59 +02:00
Šimon Brandner
53b8fd3072
Listen for mousemove on document scale
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 20:57:18 +02:00
Šimon Brandner
241e626e96
Don't listen for onMouseLeave
This would cause problems because the moving element wouldn't catch up with the user

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 20:55:05 +02:00
Šimon Brandner
11222e7a46
Wire up dragging
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 16:26:54 +02:00
Šimon Brandner
f64a950195
Prep basic methods for dragging
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 16:26:41 +02:00
Šimon Brandner
c97bbe11a9
Prep state and props for dragging
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 16:26:03 +02:00
Šimon Brandner
8948c7419c
Call dragCallbacks
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 16:24:47 +02:00
Šimon Brandner
bebcb32e8f
Add dragCallbacks
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-05-02 16:23:35 +02:00
David Baker
59c5ab31de Support MSC3086 asserted identity 2021-04-19 20:30:51 +01:00
Šimon Brandner
202ead40c4
Merge branch 'develop' into resizable-call-view 2021-04-04 11:35:26 +02:00
David Baker
82ba546142 WIP attended transfer 2021-03-25 19:56:21 +00:00
Šimon Brandner
9a2036c212
Add semicolons
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-22 07:44:37 +01:00
Šimon Brandner
b257c25c2c
Make functions private
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-22 07:40:36 +01:00
Šimon Brandner
787a62846e
Merge branch 'develop' into resizable-call-view
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-16 07:55:56 +01:00
Travis Ralston
71b8959d3c
Apply suggestions from code review
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-03-09 09:36:17 -07:00
Travis Ralston
41576954fd Batch of views getting replaceableComponent decorators 2021-03-08 20:23:54 -07:00
Šimon Brandner
35a5442e0d
Increase minHeight
This is needed for on hold. Otherwise it feels like too much, tbc

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-07 15:05:13 +01:00
Šimon Brandner
c638ced21e
Remove unused consts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-03 16:59:39 +01:00
Šimon Brandner
d244ea3b14
Don't use onResize
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-03 16:42:27 +01:00
Šimon Brandner
5877b3e00d
Add resizing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-02 20:33:19 +01:00
Šimon Brandner
69cdbef3d6
Remove maxHeight prop
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-02 20:31:39 +01:00
Šimon Brandner
4e9d19d3b0
Pass resizeNotifier into CallViewForARoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-02 14:09:11 +01:00
David Baker
b58ce4ccfc Null check for maxHeight in call view 2021-02-26 14:00:02 +00:00
David Baker
196507a730 VoIP virtual rooms, mk II
Does a thirdparty protocol lookup to the homeserver to get the
corresponding native/virtual user for a matrix ID. Stores the
mappings in room account data. Involves some slightly nasty workarounds
for that fact that room account data has no local echo.
2021-02-12 20:55:54 +00:00
J. Ryan Stinnett
4920614ca5
Merge pull request #5529 from SimonBrandner/hide-local-feed
Hide local video if it is muted
2021-01-28 12:49:52 +00:00
J. Ryan Stinnett
d78bc98521 Resolve linting errors after upgrades 2021-01-27 12:42:39 +00:00
David Baker
0a90c982c7 Add VoIP user mapper
The accompanying element-web PR with the config documentation should
explain what this is & why. Internally, this breaks the assumption
that call.roomId is the room that the call appears in for the user.
call.roomId may now be a 'virtual' room while the react SDK actually
displays it in a different room. React SDK always stores the calls
under the user-facing rooms, and provides a function to get the
user-facing room for a given call.
2021-01-21 19:20:35 +00:00
David Baker
4b43929aa3 Add in-call dialpad for DTMF sending
Requires https://github.com/matrix-org/matrix-js-sdk/pull/1573
2021-01-04 20:01:43 +00:00
Šimon Brandner
86cb7f99ce
Hide localVideoFeed if video is muted
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-30 08:46:54 +01:00
David Baker
452fbb076b Add a dialpad UI for PSTN lookup
Queries the homeserver for PSTN protocol support, and if found,
the add-room button on the DM rooms list section opens a context
menu instead with a 'dial pad' option as well as the current 'start chat'
dialog. Entering a number into this and pressing dial performs
a thirdparty user query for the given string and starts a DM with that
user.
2020-12-23 19:02:01 +00:00
David Baker
aee861956c Remove secondary call avatar
and change 'paused' to 'on hold'
2020-12-18 19:40:57 +00:00
David Baker
eab764a3c8 Vary resume link text
Use 'Switch' if unholding that call would hold another
2020-12-18 19:35:41 +00:00
J. Ryan Stinnett
8350b4152b Import from src in IncomingCallBox.tsx 2020-12-17 17:16:00 +00:00
David Baker
80be46bc32 Fix vertical scrolling in videoview
Fixes https://github.com/vector-im/element-web/issues/15886
2020-12-10 15:18:22 +00:00
David Baker
365d6982ce Add secondary call avatar to main voice content view 2020-12-07 18:28:43 +00:00
David Baker
8a58c9dea0 Update UI for two calls in the PiP view
and also merge hold_ui changes
2020-12-07 17:56:36 +00:00
David Baker
747d743bd0 Add 60% opacity black over the avatars when on hold 2020-12-07 16:22:57 +00:00
David Baker
3b25a3be98 Smaller avatar, more padding on text 2020-12-07 15:42:35 +00:00
David Baker
ab71547c4c Don't let call room names push out their containers 2020-12-04 20:36:08 +00:00
David Baker
faf2922b1b Update video element when the call changes in a videoview
Because that can happen now
2020-12-04 19:41:48 +00:00