a2e3f64963
Change read markers to use CSS transitions
...
Removes one of the two places we use Velocity, so we're one step
closer to getting rid of it for good.
Should therefore fix the fact that Velocity is leaking data entries
and therefore <hr> elements.
Hopefully also makes the logic in getEventTiles incrementally simpler,
if still somwewhat byzantine.
2019-11-26 19:06:02 +00:00
32b6fccbfc
fix double date separator
2019-11-22 17:26:14 +01:00
7df8ef2f91
Merge pull request #3655 from matrix-org/t3chguy/fix_m.room.create_upgrade_notice
...
Show m.room.create event before the ELS on room upgrade
2019-11-22 13:41:36 +00:00
25ba4c5f71
Fix read markers
...
init code needs to be a constructor or its run too late
2019-11-22 13:11:36 +00:00
3f5a8faf37
PropTypes should be static
2019-11-22 13:01:56 +00:00
6d4abeef45
Convert MessagePanel to React class
...
I was about to add the getDerivedStateFromProps function to change
how read markers worked, but doing that in an old style class
means the statics object, so let;s just convert the thing.
2019-11-22 12:07:25 +00:00
a02a285058
Show m.room.create event before the ELS on room upgrade
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-11-22 10:24:51 +00:00
3b8cb42108
Fix Room Create ELS using MXID instead of newly set Displayname/Avatar
2019-10-26 09:31:45 +01:00
f2d73793ee
delint again
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-10-09 12:51:08 +02:00
9331ca9d07
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-10-09 12:51:08 +02:00
6be318b59d
Only insert ELS if it'll be non-empty
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-10-09 12:51:08 +02:00
efde7f289f
Use EventListSummary on m.room.create events and state events thereafter
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-10-09 12:50:03 +02:00
abf111ecbd
Migrate away from React.createClass for non-auth structures. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-08-30 10:34:59 +01:00
674f33917f
Remove editing feature flag
...
Part of https://github.com/vector-im/riot-web/issues/10282
2019-07-17 16:56:15 +01:00
429b8e94df
MELS handle m.room.third_party_invite
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-07-03 08:58:34 +01:00
8394e162ad
cache setting where it's easy
2019-06-24 16:53:31 +02:00
5fa3f70fb4
feature flag for displaying edits as well
2019-06-21 18:32:15 +02:00
c4fc2a8089
remove redundant localecho part from method name
2019-06-18 14:57:58 +02:00
02c9e29937
use renamed method that also takes local redactions into account now
2019-06-18 13:47:33 +02:00
41e41269dc
use EditorStateTransfer to pass on state to newly mounted editor
2019-06-12 18:52:34 +02:00
4956dcf45e
Merge pull request #3056 from matrix-org/jryans/read-receipts-relations-review
...
Ensure we always show read receipts even with hidden events
2019-06-04 16:24:05 +01:00
8e811fc78e
Use the existing room object
...
For some reason, we were getting the room object for every event during read
receipt processing, even though it has been passed in as a prop already.
2019-06-04 16:01:02 +01:00
06547ef5b3
Cache hidden events setting
...
Settings is too expensive to query in a hot code path, so this caches the value
on the MessagePanel component instead.
2019-06-04 16:01:02 +01:00
e5abb2e089
Add more read receipt comments
2019-06-04 11:12:52 +01:00
4cea2f0af1
Ensure we always have receipts for users we've seen
...
This adds additional receipt storage to so that we can handle cases where the
receipts and events lists get out of sync. If we ever find a user who previously
had a receipt but momentarily no longer does, we recover their previous receipt
and go with that until we hear something new.
Part of https://github.com/vector-im/riot-web/issues/9745
2019-06-03 15:05:03 +01:00
f8eb449dd7
Show read receipts for hidden events on last shown event
...
This changes how we determine read receipts for the entire message panel. We now
calculate read receipts for all events up front, which makes it easier to handle
hidden events by moving their read receipts up to the last shown event for
display purposes.
Part of https://github.com/vector-im/riot-web/issues/9745
2019-06-03 15:05:03 +01:00
91e86d2b02
Fix linting in MessagePanel
2019-06-03 15:03:59 +01:00
4626581dbe
scroll event into view when starting to edit
2019-05-24 15:38:51 +02:00
238e967470
Only show reactions in main message timeline
...
This fixes an error that crashed that notifications panel because it was trying
to read reactions, even though we currently don't aggregate them there. This
change is more explicit about exactly which views should try to show reactions.
Fixes https://github.com/vector-im/riot-web/issues/9713
2019-05-21 18:27:10 +01:00
868c99d140
Hide WhoIsTyping component if the MessagePanel is shaped e.g file grid
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-05-20 21:53:15 +01:00
1368a5eb80
Merge pull request #2996 from matrix-org/bwindels/composerdesign
...
Message editing: apply design
2019-05-20 08:42:41 +00:00
45cdf880b1
Change setting style
2019-05-17 17:43:08 +01:00
3a405701a3
Debug: Show all events
2019-05-17 16:34:01 +01:00
9a3752c571
show message editor in textual body instead of replacing event tile
2019-05-17 15:30:07 +01:00
3ef631191b
show sending status for replacements as well on local echo
2019-05-16 14:44:00 +01:00
5805a88ab9
adjust to js-sdk changes of marking original event as replaced
2019-05-15 11:54:26 +01:00
6599d605cd
wire up editor component (somewhat hacky)
2019-05-14 15:38:16 +01:00
8fdb59a909
Use basic read path from JS SDK for reactions
...
This displays existing reactions correctly in the action bar and reaction row,
but it doesn't yet update after a new reaction is sent.
2019-05-10 17:19:27 +01:00
74189b2164
Fix indentation in MessagePanel
2019-05-10 17:19:27 +01:00
3e13a11372
restore scroll position after hiding typing notifs with checkScroll
2019-03-20 17:38:05 +01:00
85d305430f
no need for forceUpdate here
2019-03-20 17:37:34 +01:00
f164a78eaa
reimplement typing notif timeline shrinking prevention
...
instead of setting a min-height on the whole timeline,
track how much height we need to add to prevent shrinking
and set paddingBottom on the container element of the timeline.
2019-03-20 17:10:30 +01:00
1bdbf3086f
emit timeline_resize in MatrixChat based on ResizeNotifier
...
as it's used in PersistentElement which could be used at various places
2019-03-15 10:16:21 +01:00
891e343df6
create ResizeNotifier to derive which areas of the app resize and emit
2019-03-15 10:16:21 +01:00
4e382b1dd9
rename onWidgetLoad to onHeightChanged
...
as it's easy to confuse it with room widgets, but has nothing to do with it.
2019-03-07 17:02:19 +01:00
8bb8ec141e
clear min-height on timeline resets and other occasions where we load it
2019-02-26 10:49:03 +01:00
32f055bec2
clarify why we need this
2019-02-26 10:49:03 +01:00
db7203ed71
make sure the min-height doesn't get cleared by checkScroll
2019-02-26 10:49:03 +01:00
f7ea9cfeb2
rename all instances of permalinkCreator
2019-02-25 18:43:08 +01:00
f97ea37717
permalink is one word
2019-02-25 18:43:08 +01:00