David Baker
fe79010e4e
Only add the code copy button for HTML messages
...
Trivial fast-path optimisation: plain text messages cannot possibly contain pre
blocks so there's no point in trying to parse them in order to add code copy
buttons.
2017-09-08 23:36:22 +01:00
David Baker
ea5726aa4e
Copyright
2017-09-08 23:14:06 +01:00
David Baker
ec3ff529e7
Fast path for emojifying strings
...
Emojione's regex for detecting emoji is *enourmous* and we were
running it on every display name, room name, message etc every time
those components mounted. Add a much simpler regex to rule out the
majority of strings that contain no emoji and fast-path them.
Makes room switching about 10% faster (in my tests with all the
profiling turned on).
2017-09-08 23:05:27 +01:00
David Baker
1f84c68180
Merge pull request #1371 from matrix-org/dbkr/fix_extra_matrixchat_render
...
Don't re-render matrixchat unnecessarily
2017-09-08 19:27:09 +01:00
Matthew Hodgson
0e8bd856bc
remove obsolete this._roomViewStoreToken.remove();
2017-09-08 20:14:27 +02:00
David Baker
663dc3e513
Don't re-render matrixchat unnecessarily
...
...on room switch. We were setting most of the state in viewRoom,
but getting the current room ID from the RoomViewStore, but this
meant we did one setState from the RoomViewStore updating,
re-rendered and then setState again in viewRoom causing another
render. This just sets the room ID in viewRoom.
2017-09-08 18:56:57 +01:00
David Baker
d507dc7975
Merge pull request #1370 from matrix-org/dbkr/onhaveroom_no_wait_for_setstate
...
Don't wait for setState to run onHaveRoom
2017-09-08 18:24:57 +01:00
David Baker
aee2f3cdef
Rename onHaveRoom
...
And move some code out of it which didn't really have any reason
to be hanging out there rather than just be where we set the room
a few lines above.
2017-09-08 18:11:13 +01:00
David Baker
bf982004f6
Give onHaveRoom the info it needs explicitly
...
Rather than giving it a state object which is not actually the
whole state but happens to be everything it actually wants
(currently)
2017-09-08 17:56:53 +01:00
David Baker
81871c50be
Add more doc
...
on why module level variables do not work as singletons
2017-09-08 17:43:41 +01:00
David Baker
cce772c087
Merge remote-tracking branch 'origin/develop' into dbkr/onhaveroom_no_wait_for_setstate
2017-09-08 17:41:18 +01:00
David Baker
03dcded72f
Blank line to make comment clearer
2017-09-08 17:39:10 +01:00
Richard van der Hoff
a012dbafce
Merge pull request #1367 from matrix-org/dbkr/scroll_state_store
...
Introduce a RoomScrollStateStore
2017-09-08 17:37:32 +01:00
David Baker
1be35a77ec
Don't wait for setState to run onHaveRoom
...
onHaveRoom sets some more state (among other things) so putting it
in the setState callback so it could observe the new state caused
us to have to re-render again unnecessarily. Just give it the new
state as a parameter.
2017-09-08 17:06:46 +01:00
David Baker
984d639a37
Merge remote-tracking branch 'origin/develop' into dbkr/scroll_state_store
2017-09-08 15:58:38 +01:00
David Baker
13b094a3f6
Merge pull request #1369 from matrix-org/dbkr/dont_always_paginate
...
Don't always paginate when mounting a ScrollPanel
2017-09-08 15:51:55 +01:00
bldrzzy
d33f90e002
Translated using Weblate (Polish)
...
Currently translated at 80.1% (779 of 972 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/pl/
2017-09-08 14:49:38 +00:00
David Baker
78a2e49705
Don't always paginate when mounting a ScrollPanel
...
Calling just checkFill on DidMount did not initially set the
scrollTop which meant that one back pagination request is always
performed regardless. This meant we would end up rending the
first batch of events, then paginating and re-rendering again
after the pagination got another batch, causing unnecessary render
churn.
2017-09-08 15:41:19 +01:00
David Baker
59c54d3756
Remove redundant code
2017-09-08 13:39:22 +01:00
David Baker
d714291aa1
Re-add doc on scroll state map structure
2017-09-08 13:27:14 +01:00
Akcja Demokracja Open-Source
5684074639
Translated using Weblate (Polish)
...
Currently translated at 77.3% (752 of 972 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/pl/
2017-09-07 23:01:25 +00:00
Michael Telatynski
3df379cb49
fix radio for theme selection
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2017-09-07 18:54:41 +01:00
David Baker
82d1afcc47
Correct comment
2017-09-07 17:16:32 +01:00
David Baker
7f44ac7403
Remove now unused stuff from RoomViewStore
2017-09-07 17:15:19 +01:00
David Baker
408b8c18ea
Introduce a RoomScrollStateStore
...
to keep the place we're scrolled to in rooms. This mainly eleimates
the extra, superfluous onRoomViewStoreUpdate callback that
happened when the previous room saved back its scroll state.
Moving the scroll state to a separate store means we can have this
not emit events because nothing needs to know when the scroll state
changes.
2017-09-07 17:08:36 +01:00
Weblate
83acdee013
Merge remote-tracking branch 'origin/develop' into develop
2017-09-07 15:01:08 +00:00
David Baker
941f92530d
Merge pull request #4623 from MurzNN/patch-1
...
Fix menu on change keyboard language issue #4345
2017-09-07 16:01:04 +01:00
Weblate
942021e4bb
Merge remote-tracking branch 'origin/develop' into develop
2017-09-07 13:35:39 +00:00
Ramon Vilar
7a62b058c9
Translated using Weblate (Catalan)
...
Currently translated at 54.5% (114 of 209 strings)
Translation: Riot Web/riot-web
Translate-URL: https://translate.riot.im/projects/riot-web/riot-web/ca/
2017-09-07 13:35:38 +00:00
David Baker
ff8527c819
Merge pull request #4999 from vector-im/dbkr/fix_missing_isinvite_warning
...
Make isInvite default to false
2017-09-07 14:35:35 +01:00
Ramon Vilar
e1319d3838
Added translation using Weblate (Catalan)
2017-09-07 12:37:56 +00:00
David Baker
76be54b2be
Make isInvite default to false
...
as things are assuming it's optional but it isn't which is causing
a ton of warnings.
2017-09-07 13:35:13 +01:00
Richard van der Hoff
239b2db537
Merge pull request #1366 from matrix-org/dbkr/remove_unused_scrollstatemap
...
Remove unused scrollStateMap from LoggedinView
2017-09-07 10:37:03 +01:00
Ramon Vilar
5511fdd0c3
Added translation using Weblate (Catalan)
2017-09-07 09:12:30 +00:00
Jerzy Kołosowski
8e5c8b4fc2
Translated using Weblate (Polish)
...
Currently translated at 64.8% (630 of 972 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/pl/
2017-09-06 22:13:53 +00:00
David Baker
d71f15adf4
Remove unused scrollStateMap from LoggedinView
2017-09-06 22:51:10 +01:00
David Baker
7dbd54ad25
Merge pull request #1365 from matrix-org/revert-1353-luke/feature-sticky-date-separators
...
Revert "Implement sticky date separators"
2017-09-06 18:07:01 +01:00
Weblate
3c82e61567
Merge remote-tracking branch 'origin/develop' into develop
2017-09-06 17:07:01 +00:00
David Baker
d374425a20
Merge pull request #4991 from vector-im/revert-4939-luke/feature-sticky-date-separators
...
Revert "Implement sticky date separators"
2017-09-06 18:06:57 +01:00
Kevin Németh
720715e60e
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/hu/
2017-09-06 16:53:39 +00:00
Kevin Németh
95947323a2
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (209 of 209 strings)
Translation: Riot Web/riot-web
Translate-URL: https://translate.riot.im/projects/riot-web/riot-web/hu/
2017-09-06 16:43:33 +00:00
David Baker
609d61d53c
Revert "Implement sticky date separators"
2017-09-06 17:40:58 +01:00
David Baker
38575a653d
Revert "Implement sticky date separators"
2017-09-06 17:36:43 +01:00
Weblate
dba05488bf
Merge remote-tracking branch 'origin/develop' into develop
2017-09-06 13:38:24 +00:00
David Baker
7202556f45
Don't delete dist dir after putting stuff in it
2017-09-06 14:37:57 +01:00
Michael Telatynski
32ea675c92
fix (C) header
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2017-09-06 14:20:12 +01:00
Weblate
6a5da1011c
Merge remote-tracking branch 'origin/develop' into develop
2017-09-06 12:38:46 +00:00
David Baker
8b250bda64
Merge branch 'master' into develop
2017-09-06 13:36:11 +01:00
David Baker
92d31a8890
v0.12.3
v0.12.3
2017-09-06 13:32:33 +01:00
David Baker
1b3ffb150b
Prepare changelog for v0.12.3
2017-09-06 13:32:32 +01:00