J. Ryan Stinnett
d4ca1babbe
Update reactions row on event decryption
...
This fixes a race (perhaps revealed by the recent lazy decryption work) where
the reactions row have reactions to show, but the event would not be decrypted,
so they wouldn't render. Adding a decryption listener gets things moving again.
Fixes https://github.com/vector-im/element-web/issues/17461
2021-05-26 16:47:21 +01:00
Michael Telatynski
1ffbaee560
update style of imports in all modified files
2021-05-26 14:14:55 +01:00
Michael Telatynski
974d62e347
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/12740
...
Conflicts:
src/components/views/messages/TextualBody.js
src/components/views/right_panel/UserInfo.tsx
src/dispatcher/actions.ts
2021-05-26 14:08:01 +01:00
Germain Souquet
c7c6a818f0
Merge branch 'develop' into gsouquet/switch-rooms
2021-05-26 09:51:27 +01:00
Jaiwanth
a65299d8be
Update src/components/views/messages/MVoiceMessageBody.tsx
...
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-05-26 13:07:57 +05:30
Jaiwanth
a4907f8061
Destroy playback instance on unmount
2021-05-26 12:57:39 +05:30
Germain Souquet
f156c2db15
prevent reflow in app when accessing window dimensions
2021-05-25 10:28:43 +01:00
Michael Telatynski
4a5c634d82
Iterate PR
2021-05-24 22:02:50 +01:00
Michael Telatynski
d8acc0612a
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/12740
...
Conflicts:
src/components/views/rooms/EditMessageComposer.js
src/components/views/rooms/SendMessageComposer.js
2021-05-24 21:57:38 +01:00
Germain Souquet
229c4b98b4
use userGroups cached value to avoid re-render
2021-05-20 18:02:03 +01:00
Germain Souquet
d362321706
Simplify SenderProfile DOM structure
2021-05-20 15:25:20 +01:00
Michael Telatynski
dab75f9b88
Fix add reaction prompt showing even when user is not joined to room
2021-05-20 12:20:53 +01:00
Germain Souquet
f9f10de0da
use renamed decrypt event method
2021-05-18 13:01:38 +01:00
Germain Souquet
1cfd4b6e1a
Use client.decryptEvent to avoid accessing js-sdk private members
2021-05-18 11:41:20 +01:00
Germain Souquet
871c48f69b
stop assuming that decryption happens ahead of time
2021-05-18 10:02:21 +01:00
Michael Telatynski
6e5847ea6b
Fix right clicking on add reactions prompt button behaviour
2021-05-17 10:01:56 +01:00
Michael Telatynski
a22a1918e1
Fix add reactions prompt button showing up even if all reactions have been removed
2021-05-17 10:01:43 +01:00
Michael Telatynski
a41d76b588
fix typos
2021-05-13 14:14:01 +01:00
Michael Telatynski
76afc1100a
Convert to Typescript and move from ClientPeg to Context
2021-05-13 14:13:00 +01:00
Michael Telatynski
87ae47bd61
tweak reactions row some more, third try lucky
2021-05-13 13:59:10 +01:00
Michael Telatynski
36633ec025
Tweak alignment of reactions row, move add reaction to right and only show on hover
2021-05-13 13:32:38 +01:00
Michael Telatynski
b5fa4d88bf
Add extra add reactions button to encourage more diverse reactions to content
2021-05-13 10:56:51 +01:00
Travis Ralston
3f4ee9742a
Simple rendering of voice messages in the timeline
...
Fixes https://github.com/vector-im/element-web/issues/17138
2021-05-03 11:41:14 -06:00
J. Ryan Stinnett
83035b6b6a
Merge pull request #5931 from SimonBrandner/fix-indent
...
Enable indent rule and fix indent
2021-04-30 11:51:22 +01:00
Šimon Brandner
232b87a3b4
Improve formatting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-29 19:57:02 +02:00
Jaiwanth
70204d6111
Prevent peeking members from reacting
...
Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
2021-04-29 22:41:57 +05:30
Šimon Brandner
46bfbbadf9
Enable indent rule and fix indent
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-27 17:23:27 +02:00
Michael Telatynski
cc3571c559
fix removed pixelRatio
2021-04-27 09:56:28 +01:00
Michael Telatynski
915f8b3c9c
Scale all mxc thumbs using device pixel ratio for hidpi
...
as we are notoriously bad at doing it everywhere we ought to, like the TopLeftMenu avatar
2021-04-26 18:25:49 +01:00
Travis Ralston
c5dd6b4dfb
Update action bar to incorporate sending states
...
This moves most of them out of the context menu.
2021-04-21 16:24:17 -06:00
Šimon Brandner
eee1294374
Make both have the same baseline
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-21 17:37:25 +02:00
Šimon Brandner
ffcd79f4a3
Remove brackets
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-21 17:34:03 +02:00
Šimon Brandner
4e1409dc2c
Add private
...
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-04-20 11:40:50 +02:00
Šimon Brandner
39eb487f49
TS conversion
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 11:09:03 +02:00
Šimon Brandner
61a260cd40
Format mxid
2021-04-18 20:02:22 +02:00
Travis Ralston
ac00c80efb
Merge pull request #5521 from SimonBrandner/improve-image-view
...
Improve image view
2021-04-13 19:01:27 -06:00
Michael Telatynski
5f59e39958
Apply the same to quoting & inserting of emoji then consolidate
2021-04-13 15:09:37 +01:00
Šimon Brandner
e1446f01e4
Make ImageView static
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-13 08:07:17 +02:00
Tulir Asokan
522d58eb57
Add fake fallback thumbnail URL for encrypted videos
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2021-04-02 20:27:26 +03:00
Šimon Brandner
80854ab6bb
Don't show seconds in ImageView
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-02 09:25:21 +02:00
Šimon Brandner
9606297f7c
Merge branch 'develop' into improve-image-view
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-02 08:15:51 +02:00
Robin Townsend
f1a9c5ae93
Fix line numbers when missing trailing newline
...
_addLineNumbers expected code blocks to contain a trailing newline, but
this is not always the case.
Signed-off-by: Robin Townsend <robin@robin.town>
2021-03-25 17:38:34 -04:00
Travis Ralston
8587ec888b
Merge pull request #5769 from matrix-org/travis/voice-messages/exp
...
Labs feature: Early implementation of voice messages
2021-03-24 09:56:34 -06:00
Travis Ralston
1d9d0cd7be
Convert a bunch more js-sdk imports to absolute paths
...
Turns out a lot of the typescript warnings about improper warnings were correct. TypeScript appears to be pulling in two copies of the js-sdk when we do this, which can lead to type conflicts (or worse: the wrong code entirely). We fix this at the webpack level by explicitly importing from `src`, but some alternative build structures have broken tests because of this - jest ends up pulling in the "wrong" js-sdk, breaking things.
2021-03-18 20:50:34 -06:00
Travis Ralston
f0d5edbc37
Render voice messages as audio messages for now
2021-03-16 23:48:47 -06:00
Šimon Brandner
b27a8e3c3a
Merge branch 'develop' into improve-image-view
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-03-14 08:30:28 +01:00
Travis Ralston
d3541b78eb
Merge pull request #5714 from matrix-org/travis/media-customization
...
Support a media handling customisation endpoint
2021-03-12 11:01:59 -07:00
Panagiotis
be7fb33a67
Merge branch 'develop' into edit-view-source
2021-03-11 17:07:56 +02:00
Travis Ralston
7f52e78748
Make styles dynamic
2021-03-10 21:08:01 -07:00
Travis Ralston
ebf1efe01b
docs
2021-03-10 12:32:18 -07:00
Travis Ralston
a7debdd946
Fix tinting for download icon
...
As shown in https://github.com/vector-im/element-web/issues/16546
2021-03-10 12:32:18 -07:00
Travis Ralston
533c9fed64
Appease the linter
2021-03-10 12:32:18 -07:00
Travis Ralston
1ac12479ca
Convert cases of mxcUrlToHttp to new media customisation
2021-03-10 12:32:18 -07:00
Travis Ralston
5b3367d44e
Merge remote-tracking branch 'origin/develop' into travis/skinning/pt3-easy-comps
2021-03-09 09:33:19 -07:00
Travis Ralston
eb45731d2e
Merge pull request #5735 from matrix-org/travis/use-strict-no
...
Remove a bunch of useless 'use strict' definitions
2021-03-09 07:24:41 -07:00
Panagiotis
ef267829de
Merge branch 'develop' into edit-view-source
2021-03-09 14:49:05 +02:00
J. Ryan Stinnett
d33acaac95
Merge pull request #5713 from panoschal/improve-view-source
...
Display decrypted and encrypted event source on the same dialog
2021-03-09 11:36:53 +00:00
Travis Ralston
591ccabab9
Remove a bunch of useless 'use strict' definitions
2021-03-08 20:26:08 -07:00
Travis Ralston
fc5b1ed9d6
Batch of views getting replaceableComponent decorators
2021-03-08 20:23:39 -07:00
Panagiotis
7963d7f49e
address PR comments
...
cleanup, change to isEncrypted, comments
2021-03-08 21:21:37 +02:00
Travis Ralston
761ced13f2
Merge pull request #5719 from matrix-org/travis/file-representation
...
UI refresh for uploaded files
2021-03-08 08:52:43 -07:00
Panagiotis
51ac5421c9
chore: refactor code
...
pass only the mxEvent object to ViewSource
derive the necessary values inside the component
2021-03-06 11:30:31 +02:00
Panagiotis
2c64dac514
fix: show decrypted source on EditHistory -> ViewSource
...
pass correct props to the component
2021-03-05 19:57:37 +02:00
Travis Ralston
8d143331a8
Appease the linter
2021-03-04 20:10:47 -07:00
Travis Ralston
5d6e3d5711
UI refresh for uploaded files
...
Fixes https://github.com/vector-im/element-web/issues/16557
Fixes https://github.com/vector-im/element-web/issues/9482 (technically)
There's two changes in this:
1. The actual file body in the timeline now has a placeholder thing.
2. We're intentionally dropping all the "Travis uploaded a file" sender profile states.
2021-03-04 20:07:48 -07:00
Travis Ralston
08d35073de
Improve commentary
2021-03-02 11:04:12 -07:00
Travis Ralston
9cec382865
Change sending->sent state to match new designs
...
For https://github.com/vector-im/element-web/issues/16424
2021-03-01 16:25:19 -07:00
Šimon Brandner
4f3fe3d236
Add comments
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-25 11:09:52 +01:00
Šimon Brandner
b18622efe4
Show full date
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-25 08:20:34 +01:00
Šimon Brandner
bd5efc7ceb
Pass permallinkCreator to ImageView
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 19:11:08 +01:00
J. Ryan Stinnett
c57b49a354
Merge pull request #5673 from SimonBrandner/dont-show-copy-button
...
Add <code> if it's missing
2021-02-24 13:33:39 +00:00
Šimon Brandner
986950697b
Rmove unnecessary code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 14:10:09 +01:00
Šimon Brandner
024871f59d
Merge branch 'dont-show-copy-button' of https://github.com/SimonBrandner/matrix-react-sdk into dont-show-copy-button
2021-02-24 13:41:16 +01:00
Šimon Brandner
363b753306
Avoid innerHTML
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 13:40:37 +01:00
Šimon Brandner
61cd026d7a
Improve comment
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-02-24 13:07:25 +01:00
J. Ryan Stinnett
3db6a45010
Revert "Merge pull request #5637 from williamkray/wreck/clean-thumbnail-changes"
...
This reverts commit 5c1b38a48c
, reversing
changes made to ec4a39a694
.
2021-02-23 12:03:08 +00:00
Šimon Brandner
ce1be7a4cd
Use length instead of the first element
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-23 07:49:26 +01:00
Šimon Brandner
c9baff1e10
Move the _addCodeElement() call down a bit
...
We can skip this if the first if statement is true
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-23 07:46:03 +01:00
Šimon Brandner
c965119410
Add _addCodeElement method
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-23 07:40:53 +01:00
Šimon Brandner
6149567c62
Add <code> if it's missing
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-22 13:43:57 +01:00
Šimon Brandner
87a2454556
Revert "Don't show copy button if there is no <code>"
...
This reverts commit c76cc33ebf
.
2021-02-22 13:41:20 +01:00
Šimon Brandner
c76cc33ebf
Don't show copy button if there is no <code>
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-22 13:23:39 +01:00
J. Ryan Stinnett
5c1b38a48c
Merge pull request #5637 from williamkray/wreck/clean-thumbnail-changes
...
Improve URL preview formatting and image upload thumbnail size
2021-02-17 11:37:37 +00:00
Michael Telatynski
6cb3381df5
Remove redundant lockOrigin parameter from usercontent
...
now that each Element has its own, and not usercontent.riot.im
it only has to permit its own origin
2021-02-16 18:03:12 +00:00
Šimon Brandner
6b0b46b917
Fix duplication caused by highlighting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-10 14:20:19 +01:00
Šimon Brandner
895be6e7a6
Added second comment back
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-10 14:02:45 +01:00
Šimon Brandner
5cf126dea3
Added comment back
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-10 13:41:24 +01:00
Šimon Brandner
b97d8979c7
Remove nested for loop
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-10 13:18:23 +01:00
Šimon Brandner
4a7bc74e99
Fix duplication of codeblock elements
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-09 19:46:30 +01:00
William Kray
cd1a99186b
change image rendering size max height
2021-02-08 09:26:10 -08:00
Šimon Brandner
84eba59afa
Merge branch 'develop' into improve-codeblock
2021-02-08 15:26:50 +01:00
Šimon Brandner
ec73f2ec49
Change comment styling
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-05 08:30:54 +01:00
Šimon Brandner
77248725ed
Added onHeightChanged call
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-05 08:29:24 +01:00
Šimon Brandner
ad5c8fe7e4
Revert "Rerender MessagePanel"
...
This reverts commit c7e61ac71d
.
2021-02-05 08:27:07 +01:00
Šimon Brandner
9bd8fef6b3
Change comment styling
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-02-05 08:22:02 +01:00
Šimon Brandner
9db86a38f6
Update src/components/views/messages/TextualBody.js
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-02-04 17:58:21 +01:00
Travis Ralston
c1b33d3e2c
Fix Jitsi widgets causing localized tile crashes
...
Seems to be that as part of the layout work the timing sequence for when `.getRoom().widgets` will work changed. We can get around this with `initIfNeeded` which will no-op in the worst case.
This also includes a copy change to make ended conferences stop lying about where to find the widget. This is work towards https://github.com/vector-im/element-web/issues/15739
2021-01-27 14:40:04 -07:00
Šimon Brandner
c7e61ac71d
Rerender MessagePanel
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-01-21 17:32:57 +01:00
Šimon Brandner
97c5058f00
Removed log
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-01-21 13:10:21 +01:00
Šimon Brandner
da09362f99
Added option to hide line numbers
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-01-21 13:08:55 +01:00