Travis Ralston
63a7b86eac
Flatten and simplify the memberlist sorting algorithm
...
The previous algorithm had a bug where it was getting stuck on the power level comparison, leaving the memberlist incorrectly ordered. The new algorithm uses less branching to try and walk through the different cases instead. Additionally, the steps used to determine the order have changed slightly to better represent an active member list.
This commit also includes changes to try and re-sort the member list more often during presence changes. Events are not always emitted, however. This may be a js-sdk bug but appears to happen prior to these changes as well.
Fixes https://github.com/vector-im/riot-web/issues/6953
2019-01-03 12:15:19 -07:00
David Baker
982e037822
Fix merge
2019-01-03 18:05:38 +00:00
David Baker
7d161de35b
Partial merge of develop to experimental
...
Does not include #2336 as the file has been moved out from underneath it:
will do this separately
2019-01-03 15:02:58 +00:00
J. Ryan Stinnett
402f58225f
Show in-room reminder when key backup creating device unverified
...
If the current device hasn't verified the device that created the account's
current key backup version, then the current device is won't use the key backup.
This change adjusts an existing in-room reminder to do the right thing for this
case by allowing the user to verify the device that created the key backup.
Fixes vector-im/riot-web#7902 .
2019-01-02 15:36:40 -06:00
Travis Ralston
f5ff580e35
Add some logging for riot-web#7838
...
See https://github.com/vector-im/riot-web/issues/7838
2018-12-21 14:51:05 -07:00
Travis Ralston
04c9fff6ce
Add a feature flag for custom status messages
2018-12-18 15:11:08 -07:00
Bruno Windels
1d43712a8f
Merge branch 'experimental' into nadonomy/icons
2018-12-18 18:22:24 +01:00
Nad Chishtie
074c96cd3e
First pass of normalising icons.
2018-12-18 16:48:20 +00:00
Bruno Windels
5e2ee883aa
Merge pull request #2366 from matrix-org/bwindels/fixrhscollapse
...
Redesign: fix remaining right panel collapse issues.
2018-12-18 16:19:02 +00:00
Bruno Windels
4b788fcb7e
fix lint
2018-12-18 16:29:31 +01:00
Bruno Windels
2cb817ae26
remove dead code (collapse button was removed)
2018-12-18 15:33:28 +01:00
Bruno Windels
acba36c975
Merge pull request #2364 from matrix-org/bwindels/fixresizepersistenceandscrollindicator-again
...
Redesign: left panel fixes
2018-12-18 14:23:38 +00:00
Bruno Windels
2cda6d8f35
fix empty comment line
2018-12-18 15:06:56 +01:00
Bruno Windels
cdcb3c1a55
check overflow and restore sizes in more places inside RoomList:
...
check overflow on mount
restore size on query change (in case a sublist appeared)
check overflow when updating rooms
avoid duplicating for restoring size and checking overflow
2018-12-18 14:26:33 +01:00
Bruno Windels
b359a2edee
call header clicked callback after rerendering, so resizer has DOM nodes
2018-12-18 10:56:00 +01:00
Bruno Windels
0676c1b8ad
Merge pull request #2361 from matrix-org/bwindels/collapserhs
...
Redesign: allow to hide the right panel when clicking already active button & persist
2018-12-18 09:46:30 +00:00
Bruno Windels
a734fb9d35
dont set initial phase, show panel when collapsed
2018-12-17 15:55:26 +01:00
Bruno Windels
65f9bc9754
remove expand button in room header
2018-12-17 15:23:46 +01:00
Bruno Windels
242b0c21ac
make avatar 24px and tile height 32px
2018-12-17 14:03:48 +01:00
Bruno Windels
3ea0fd1a2f
fix overflow indicators not being updated when searching
2018-12-14 17:06:51 +01:00
Travis Ralston
63658e0441
Add a missing null check
2018-12-13 14:29:12 -07:00
Bruno Windels
c8243357ea
disable editor history/persistence when in grid to avoid pesky bug
2018-12-13 13:01:59 +01:00
Bruno Windels
f593bff3c3
show right panel tabs inside panel instead of room header in grid mode
2018-12-13 13:01:59 +01:00
Bruno Windels
44200a6f78
only listen and dispatch to room-local dispatcher in room view, composer
2018-12-13 13:01:59 +01:00
Bruno Windels
720bc11aa4
avoid using roomviewstore for detecting selected room
2018-12-13 13:01:59 +01:00
Bruno Windels
43efa29ef8
track active room with OpenRoomsStore
2018-12-13 12:59:18 +01:00
Bruno Windels
df8539d6bc
pass the RoomViewStore down with a prop instead of global var.
...
this will allow to have more than 1 RoomView further on
2018-12-13 12:59:18 +01:00
Travis Ralston
f2649f7807
Use the now-prefixed js-sdk status message API
...
See 08b3dfa3b5
2018-12-12 23:07:03 -07:00
Travis Ralston
99f5b9e39b
Misc cleanup of whitespace
2018-12-12 18:18:43 -07:00
Travis Ralston
a91963e5ee
Replace the avatar next to the composer with a status entry menu
...
The checkmark might change, and there appears to be some state tracking mishaps that need to be worked out.
Part of https://github.com/vector-im/riot-web/issues/1528
2018-12-12 18:03:30 -07:00
Travis Ralston
dd382ecb05
Fix a bug with determining 1:1 rooms
...
We shouldn't consider rooms where people have left or been banned
2018-12-12 13:20:26 -07:00
Travis Ralston
cd9ea2b2d7
Fix alignment of avatars and status messages
...
also introduce the status message to the MemberInfo pane
Part of https://github.com/vector-im/riot-web/issues/1528
2018-12-12 12:57:48 -07:00
Bruno Windels
9f5a0250bf
Merge pull request #2345 from matrix-org/bwindels/jumptofirstunread-rebased
...
Redesign: restyle jump to first unread message & rework read marker logic (rebased)
2018-12-12 10:13:51 +00:00
Travis Ralston
ce7969e3d5
Display custom status messages in the UI
...
Part of https://github.com/vector-im/riot-web/issues/1528
2018-12-11 21:40:11 -07:00
Bruno Windels
ac9902e52a
apply redesign to topunreadmessagebar
...
with placeholder for message count
2018-12-11 15:43:00 +01:00
Bruno Windels
3040f2d2e2
remove try/catch as the error is already prevented inside resize
2018-12-11 10:51:14 +01:00
Bruno Windels
f4e61b2bf1
fixup for roomsublist fix
2018-12-10 16:53:04 +01:00
J. Ryan Stinnett
a92d2902c4
Add an in-room reminder to set up key recovery
...
This adds an in-room reminder above the message timeline to set up Secure
Message Recovery so that your keys will be backed up. If you try to ignore it,
an additional dialog is shown to confirm.
Fixes vector-im/riot-web#7783 .
Signed-off-by: J. Ryan Stinnett <jryans@gmail.com>
2018-12-07 14:13:02 -06:00
Travis Ralston
ca1313099f
Show the IncomingCallBox if the call is for the RoomSubList
...
Fixes https://github.com/vector-im/riot-web/issues/4369
Previously the RoomSubList would filter its list of rooms to verify that the incoming call belongs to it. This causes problems when the sub list is being told some rooms don't exist (ie: the list is filtered). It is trivial for the RoomList to instead track which RoomSubList (tag) it should be handing the call off to so we do that instead now. The RoomSubList trusts that the caller has already filtered it and will render the IncomingCallBox if it has an incoming call.
2018-12-06 11:45:58 -07:00
Travis Ralston
0f348a7c78
Merge branch 'develop' into travis/invite-errors
2018-12-05 11:25:45 -07:00
Bruno Windels
13491e797d
persists & load collapsed room sub lists
2018-12-03 10:39:31 +01:00
Will Hunt
2b077b4f5d
Merge remote-tracking branch 'upstream/develop' into hs/upload-limits
2018-12-01 16:24:43 +00:00
Travis Ralston
987ad0b0db
Check if users exist before inviting them and communicate errors
...
Fixes https://github.com/vector-im/riot-web/issues/3283
Fixes https://github.com/vector-im/riot-web/issues/3968
Fixes https://github.com/vector-im/riot-web/issues/4308
Fixes https://github.com/vector-im/riot-web/issues/1597
Fixes https://github.com/vector-im/riot-web/issues/6790
This does 3 things:
* Makes the `MultiInviter` check for a user profile before attempting an invite. This is to prove the user exists.
* Use the `MultiInviter` everywhere to avoid duplicating the logic. Although a couple places only invite one user, it is still worthwhile.
* Communicate errors from the `MultiInviter` to the user in all cases. This is done through dialogs, where some existed previously but were not invoked.
Specifically to the 403 error not working: What was happening was the `MultiInviter` loop was setting the `fatal` flag, but that didn't resolve the promise it stored. This caused a promise to always be open, therefore never hitting a dialog.
2018-11-29 15:05:53 -07:00
Bruno Windels
8f4292399b
Merge pull request #2297 from matrix-org/bwindels/roomlistsizingimprovements
...
Redesign: improve room sub list sizing & persist sizes
2018-11-27 13:40:48 +00:00
Bruno Windels
887defda9c
temp solution to make room settings usable
...
make mx_fadable not do anything anymore, and make room settings
full size.
Room settings haven't been designed yet, so all of this will
have a full pass when we have a go at it.
2018-11-26 17:58:51 +01:00
Bruno Windels
0c7d51d70d
persist room sub list sizes
2018-11-26 16:46:57 +01:00
Bruno Windels
8929ff9b5e
use room resize classes
2018-11-26 14:42:01 +01:00
Bruno Windels
67e0030ccd
Merge branch 'develop' into experimental
2018-11-26 13:10:29 +01:00
David Baker
985966f8be
Update async dialog interface to use promises
...
Hopefully makes the syntax a bit nicer. Also uses ES6 async import
rather than require.ensure which is now deprecated. Also also
displays an error if the component fails to load rather than falling
over in a heap, which is nice.
2018-11-21 16:56:44 +00:00
Bruno Windels
ece549bf71
fix lint
2018-11-13 09:17:37 +01:00
Bruno Windels
ffc73c59b4
make padding and DOM more like event tile
2018-11-13 09:15:43 +01:00
Bruno Windels
8ddd2dd078
scroll down when showing typing notif and stuck at bottom
2018-11-13 09:15:16 +01:00
Bruno Windels
20b8994714
simplify DOM and style to design
2018-11-12 18:19:18 +01:00
Bruno Windels
7df47cbc87
move typing notifications to WhoIsTypingTile, shown in ScrollPanel
2018-11-12 16:09:51 +01:00
Bruno Windels
883126a528
Merge branch 'experimental' into bwindels/memberqueryfield
2018-11-07 13:29:28 +01:00
Bruno Windels
9e95a1402c
Merge pull request #2269 from matrix-org/bwindels/roomlistpolish
...
Redesign: room list visual polish
2018-11-07 11:44:47 +00:00
Bruno Windels
4e773c2665
Make right panel a dark-panel instead of every descendant.
...
Also move bg color central.
2018-11-06 14:47:58 +01:00
Bruno Windels
92e43ea181
move filter member field to bottom of memberlist
...
reorganize styles as well
2018-11-06 14:47:11 +01:00
Bruno Windels
ef26189add
add dedicated menu button to room tile with new design
2018-11-05 17:42:25 +01:00
Bruno Windels
c0becc7664
fix roomtile badge
...
only put it in the dom if it has
anything to show as it has a border now in collapsed mode
2018-11-05 14:24:12 +01:00
Bruno Windels
3cd32e2f44
update search icon(s)
2018-11-05 13:07:49 +01:00
Bruno Windels
064662380f
support search icon in mx_textinput, use in memberlist
2018-11-05 09:35:27 +01:00
Bruno Windels
46389457e3
add input styling for light and dark panels (leftpanel vs room header)
2018-11-05 09:32:37 +01:00
Bruno Windels
e29227db4e
bring back "filter rooms" field
...
this does the filtering in RoomList instead of RoomSubList, so
we can hide sections that don't have any results.
The filtering does happen with every rerender of RoomList,
but only does something while searching, so the performance
implications are probably negligible.
2018-11-02 15:27:17 +01:00
Bruno Windels
b4dd739771
Merge branch 'experimental' into bwindels/rightpanelbelowheader
2018-10-31 14:57:16 +01:00
Bruno Windels
ba83166661
Merge branch 'develop' into experimental
2018-10-31 14:54:22 +01:00
Bruno Windels
e80a1c5051
move room/group panel header buttons into room/group header
2018-10-30 17:15:19 +01:00
Aaron Raimist
49ce4ef117
eslint --fix src/
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2018-10-26 22:50:38 -05:00
David Baker
156ffd1334
Fix autoreplacement of ascii emoji
...
More slate API updates in code paths I didn't test
Fixes https://github.com/vector-im/riot-web/issues/7509
2018-10-26 17:01:44 +01:00
Bruno Windels
2c039483c6
Merge branch 'develop' into experimental
2018-10-26 15:33:39 +02:00
David Baker
85bb8392c4
Merge pull request #2247 from matrix-org/dbkr/fix_emoji_replacement
...
Fix emoji replacement in composer
2018-10-25 16:23:13 +01:00
David Baker
5e81e5b8b8
Fix variable scope
2018-10-25 15:07:19 +01:00
David Baker
401f6333ed
Do...while loops are a thing
2018-10-25 14:54:32 +01:00
David Baker
adee0fdcef
Merge pull request #2248 from matrix-org/bwindels/memberpanel
...
Redesign: basic makeover of member info panel
2018-10-25 14:52:54 +01:00
Bruno Windels
3096bf42ef
fix css in chrome
2018-10-25 15:20:51 +02:00
Bruno Windels
030deba90c
avoid downloading avatars at full resolution
2018-10-25 15:20:33 +02:00
Will Hunt
8118a9c71a
Wall devtools button behind a setting
2018-10-24 18:15:35 +01:00
Will Hunt
44a41b589d
Comma on strings and styling button
2018-10-24 17:50:27 +01:00
Will Hunt
79d467c551
Add button to open devtools in roomsettings
2018-10-24 17:36:58 +01:00
Bruno Windels
e4dfb90b85
basic makeover of member panel with big avatar
2018-10-24 18:23:34 +02:00
Bruno Windels
873ff7fc29
make EntityTile responsive
2018-10-24 18:22:57 +02:00
David Baker
78d8d22457
Fix emoji replacement in composer
...
* Re-scan the slate document tree on each emoji replacement since
doing a replacement will invalidate all the offsets we have.
* Reset the emoji regex each time we use it.
Fixes https://github.com/vector-im/riot-web/issues/7550
2018-10-24 16:46:06 +01:00
Bruno Windels
7244d30c9c
guard against empty roomId/non-existant room
2018-10-24 16:44:18 +02:00
Bruno Windels
8c62dddb32
one big commit, sorry
...
changing looks of input & buttons
changing background color of right panels
moving invite button around
change margins and paddings in memberlist
2018-10-24 13:50:58 +02:00
Bruno Windels
5425eda438
Merge pull request #2241 from matrix-org/bwindels/redesignicons1
...
Redesign: update (most) icons
2018-10-23 19:40:59 +00:00
Bruno Windels
eb453f4539
make icons in composer smaller, better spacing
2018-10-23 18:11:15 +02:00
Bruno Windels
18fedb23ec
fix basic room header layout
...
make room name take as much space as it needs (but not more than width)
put all items apart from right buttons in one flex container
so name and topic can grow as required
more small tweaks
2018-10-23 16:57:56 +02:00
Travis Ralston
78f527cf95
Remove unused classes
2018-10-22 15:14:21 -06:00
Bruno Windels
ebd3d34106
make sure no resize handle is put after last sublist
2018-10-19 18:35:27 +02:00
Bruno Windels
c6924c47fa
no need for self
2018-10-19 14:43:54 +02:00
Bruno Windels
d48f19bc19
remove alwaysShowHeader, as now onAddRoom prop determines this
2018-10-19 14:43:02 +02:00
Bruno Windels
5091aa3b43
get rid of emptyContent, also cleanup sublist render method
...
also assume empty list in css by default and add nonEmpty class
2018-10-19 14:41:51 +02:00
Bruno Windels
0386a1e048
get rid of obsolete showEmpty prop
2018-10-19 14:32:49 +02:00
Bruno Windels
ae8723451a
remove onShowMoreRooms, as room tiles & scrollbar rendered at same level
2018-10-19 14:27:36 +02:00
Bruno Windels
f14c2cf2b2
don't hide empty sections that have a (+) button
2018-10-19 12:46:59 +02:00
Bruno Windels
6af61ebb09
add plus button for rooms and people
2018-10-19 12:07:36 +02:00
Bruno Windels
d264687796
don't scroll sub list header
2018-10-18 16:25:22 +02:00
Bruno Windels
01082c8595
hook up resizer events
2018-10-18 15:51:58 +02:00
Bruno Windels
39ab3d86bd
create sizer that sets item size with flex-basis
...
works with the flex-grow we set initially for the sub lists
2018-10-18 15:51:22 +02:00
Bruno Windels
c1e602d56f
scrollbars and resize handles around room sub lists
2018-10-18 15:19:45 +02:00
Bruno Windels
99982b1164
put repeated props in process function
2018-10-18 15:15:56 +02:00
Bruno Windels
c12368ea48
process RoomSubList props through function before creating them
...
this way, we'll be able to add adjacent resize handles and scroll wrappers
2018-10-18 15:09:58 +02:00
Bruno Windels
81d0ce2bcf
remove sticky header code
2018-10-18 15:08:32 +02:00
Travis Ralston
af8dfda9a7
Add a bit of text to explain the purpose of the RoomPreviewSpinner
...
Fixes https://github.com/vector-im/riot-web/issues/5869
2018-10-17 13:53:12 -06:00
Bruno Windels
6906d5a5f9
remove DND for room tiles
2018-10-17 16:02:35 +02:00
Bruno Windels
cc29dd08da
don't always show badge (leftover)
2018-10-16 14:54:14 +02:00
Bruno Windels
01471abdc5
Merge branch 'bwindels/redesign' into bwindels/resizehandles
2018-10-16 11:57:59 +02:00
Bruno Windels
6878ce3c6a
Merge branch 'develop' into bwindels/redesign
2018-10-16 11:57:44 +02:00
Will Hunt
5a72a5863f
Merge remote-tracking branch 'upstream/develop' into hs/upload-limits
2018-10-15 19:20:55 +01:00
Aaron Raimist
9f1b1d2028
Fix more lint errors
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2018-10-11 22:50:24 -05:00
Aaron Raimist
a66dbccef8
Fix lint errors in MessageComposerInput.js
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2018-10-11 22:46:55 -05:00
David Baker
3efc09586b
More API changes
2018-10-11 10:47:36 +01:00
David Baker
4d1f2cdfa9
Fix quote post slate update
...
Missed API update
2018-10-11 10:29:55 +01:00
Bruno Windels
dfb4c594a8
Merge pull request #2204 from matrix-org/bwindels/rrfallbackavatars
...
Fall back to default avatar in RR when member isn't loaded yet
2018-10-10 16:58:59 +02:00
Bruno Windels
0767c278e7
put userId next to member in read receipt, fall back when member missing
2018-10-10 16:14:09 +02:00
David Baker
97ed4ed0bb
Merge pull request #2202 from matrix-org/dbkr/update_slate
...
Update to new version of slate
2018-10-10 11:10:20 +01:00
David Baker
4e1fabd140
Remove spurious ...atributes in the wrong place
...
We already have it above
2018-10-09 16:05:14 +01:00
David Baker
41bc42e7d7
Merge pull request #2194 from pvagner/more_accessible_buttons
...
More accessible buttons - take 2
2018-10-09 11:04:50 +01:00
David Baker
c1f51a76dd
Update to new version of slate
...
Lots of fixes here as a lot of the API has changed (eg. anchorKey /
offsetKey are now anchor.key and offset.key, and collapseFocusToThing
is moveFocusToThing).
Also changes the ref to a function (sorry for lumping this into the
same PR).
Hopefully will fix https://github.com/vector-im/riot-web/issues/7105
2018-10-09 10:55:55 +01:00
Will Hunt
17915b5082
Merge branch 'develop' into hs/purge-irc-hack
2018-10-03 19:39:14 +01:00
Will Hunt
fe788486b7
Drop (IRC) suffix hacks
2018-10-03 19:34:06 +01:00
Peter Vágner
e05ae29146
Also fix accessibility of sticker buttons
2018-10-02 20:19:21 +02:00
Peter Vágner
ded35e43a0
A11y: repurpose more divs into AccessibleButtons.
...
With this more of the
controls that look like buttons can be operated via the keyboard and
navigated to by screen reader users. This includes editor buttons such
as File upload, Audio / Video call, Right pannel hide button, Jump to
the bottom timeline button, and some more buttons found in the user
settings.
Also I have added alt texts to some images that in turn label buttons
which these happen to be packed in and removed some untranslated alt
texts from decorative non-actionable images that might add more
verbosity when talking about screen reader user experience.
2018-10-02 13:55:24 +02:00
Bruno Windels
928b6d47c8
add resize handles between 3 main app columns
2018-09-24 16:07:42 +01:00
Bruno Windels
91ec96c8d3
Merge branch 'develop' into bwindels/redesign
2018-09-21 12:44:44 +02:00
Matthew Hodgson
0f806d5b99
Merge branch 'develop' into matthew/canonical_aliases
2018-09-20 01:45:08 +01:00
Matthew Hodgson
c6fa8ea24c
show canonical aliases in timeline, and set/remove implicit ones
2018-09-20 01:07:01 +01:00
Bruno Windels
920e0d397c
Merge branch 'develop' into bwindels/fixstalerr
2018-09-19 12:15:41 +02:00
Matthew Hodgson
d39889e2cf
Merge pull request #2167 from matrix-org/t3chguy/m.room.aliases
...
Add m.room.aliases to the timeline
2018-09-18 11:14:44 +01:00
Matthew Hodgson
ece041d059
fix NPE on name (related to LL?)
2018-09-18 00:16:25 +01:00
Bruno Windels
8c4f4765df
remove initial parameter and show available members on invite instead
2018-09-17 20:03:01 +02:00
Bruno Windels
0727e0f8d3
mounted can be set straight in componentWillMount
2018-09-17 20:02:15 +02:00
Bruno Windels
e8b4770940
fix lint
2018-09-17 20:01:55 +02:00
Bruno Windels
e0a789f77e
remove untrue comment, as we only load the members when joining
2018-09-17 19:21:22 +02:00
Bruno Windels
e1b9aa9626
better naming and document method
2018-09-17 19:20:26 +02:00
Matthew Hodgson
dc7212ec2b
switch back to simple TextForEvent
...
I haven't found anyone who can justify to me why we need
more complicated plurals for i18n (even in Polish) for
%(senderName)s added %(addedAddresses)s and removed %(removedAddresses)s as addresses for this room.
2018-09-17 18:20:12 +01:00
Bruno Windels
d276b17c2a
remove dead code
2018-09-17 19:19:07 +02:00
Bruno Windels
c3914d3493
show empty list as initial state instead of spinner
...
the spinner should only be shown when joined
2018-09-17 19:18:55 +02:00
Bruno Windels
2ed414494f
use Room.myMembership event instead of RoomMember.membership for me
...
This is more reliable with LL enabled as the syncing user is
only known when it was active in the current timeline
or when the members have been loaded
2018-09-17 19:14:52 +02:00
Matthew Hodgson
3b868064c7
merge in develop
2018-09-16 19:06:52 +01:00
Bruno Windels
27c496aecb
remove unneeded async keywords
2018-09-14 13:55:47 +02:00
Bruno Windels
f194f323f4
postpone loading the members until the user joined the room
...
when peeking, the members weren't being loaded at all because
the room wasn't available yet,
and the need for loading the members was never re-evaluated after that.
This only loads the members once the user has joined the room,
which also helps to avoid load all the members before an invite
is accepted.
2018-09-13 18:43:24 +02:00
Bruno Windels
ecaabd6b75
Merge pull request #2161 from matrix-org/bwindels/dontupdatememberlistwhileloading
...
avoid updating the memberlist while the spinner is shown
2018-09-11 10:57:29 +02:00
Bruno Windels
2aaf3e6b89
dont assign member in getInitialState
2018-09-10 17:39:03 +02:00
Bruno Windels
92f7e29132
missed one {} -> [], fix e2e tests
2018-09-10 17:32:40 +02:00
Bruno Windels
5044d4f2d6
dont keep the spinner in the memberlist when fetching /members fails
2018-09-10 14:56:10 +02:00
Bruno Windels
0cd222ef0b
make users available in member by requesting them from client right before
...
before this was already foreseen, but memberDict wasn't being refreshed
as it's only used in roomMembers(), I got rid of memberDict as well
2018-09-07 23:44:20 +02:00
Bruno Windels
7fe822ca17
Merge branch 'develop' into bwindels/dontupdatememberlistwhileloading
2018-09-07 23:43:25 +02:00
Bruno Windels
467cdd2f1f
Merge branch 'develop' into bwindels/optimizememberlist
2018-09-07 18:32:13 +02:00
Bruno Windels
9cc9fbf924
avoid memberlist refresh for events related to rooms other but the current
2018-09-07 14:05:26 +02:00
Bruno Windels
fec7d2ee5f
avoid updating the memberlist while the spinner is shown
...
the memberlist gets updated constantly while the LL members
are being added to the room state. this slows things down unneed, and is one of the
main cause of dropping frames when member arrive.
2018-09-07 12:00:19 +02:00
David Baker
c8ab8bf5f8
Merge pull request #2150 from matrix-org/dbkr/disable_ilag_if_unsupported
...
Do full registration if HS doesn't support ILAG
2018-09-06 16:23:32 +01:00
Bruno Windels
26df485607
Merge branch 'develop' into revert-2149-revert-2145-bwindels/fixllroompermission
2018-09-06 15:35:41 +02:00
David Baker
4c8d2de563
Revert "Revert "Don't rely on room members to query power levels""
2018-09-06 11:48:23 +01:00
David Baker
9e64a22884
s/DidMount/WillMount/ in MessageComposerInput
...
This fixes the tests that broke with https://github.com/matrix-org/matrix-js-sdk/pull/717
This is because of https://github.com/vector-im/riot-web/blob/master/test/app-tests/joining.js#L63
which prevents the DOM nodes from actually ending up in the DOM, even though the react components
get rendered. This means that WillMount and WillUnmount are called, but not DidMount.
Using WillMount is more symmertrical anyway since the resulting teardown code must be in
WillUnmount (since there is no DidUnmount).
2018-09-06 11:44:13 +01:00
David Baker
27fa21e403
Replace view_set_mxid with require_registration
...
To put all the other flows through the to-ilag-or-not-to-ilag flow
2018-09-05 18:08:49 +01:00
David Baker
34d27954cf
Revert "Don't rely on room members to query power levels"
2018-09-05 18:03:48 +01:00
Bruno Windels
8500a7131f
avoid unneeded lookups in memberDict
...
have members be an array of RoomMember instead of userId, so
we can avoid multiple lookups when sorting, rendering, ...
2018-09-05 15:25:08 +02:00
Bruno Windels
50de22fb51
Merge pull request #2145 from matrix-org/bwindels/fixllroompermission
...
Don't rely on room members to query power levels
2018-09-05 13:07:55 +02:00
Bruno Windels
be66f98381
use room method for checking power levels
...
as it is always are of the syncing user's membership
in case of lazy loading members
2018-09-04 15:35:44 +02:00
Bruno Windels
1eabb6012a
Merge pull request #2139 from matrix-org/bwindels/memberlist-spinner
...
Show spinner in member list while loading members
2018-09-03 15:05:27 +02:00
Bruno Windels
cae419e304
avoid rerendering when LL is disabled
2018-09-03 11:13:56 +02:00
David Baker
2c1ba6f104
Merge pull request #2124 from matrix-org/dbkr/tombstone
...
Support m.room.tombstone events
2018-08-29 18:38:48 +01:00
David Baker
c40ac49b2a
Merge remote-tracking branch 'origin/develop' into dbkr/roomcreate
2018-08-29 18:18:08 +01:00
David Baker
bd0a9cf3a0
Merge remote-tracking branch 'origin/develop' into dbkr/room_upgrade
2018-08-29 15:51:07 +01:00
Bruno Windels
f9c40390e9
set state after setting _showPresence to avoid all members to appear offline on matrix.org
2018-08-29 11:09:55 +02:00
Bruno Windels
e9e5abfcc5
show a spinner in the memberlist while loading the members
2018-08-29 10:30:25 +02:00
David Baker
98dabe1a46
Merge pull request #2132 from matrix-org/bwindels/fixllcomposeravatar
...
Fix LL crash trying to render own avatar in composer when member isn't available yet
2018-08-23 12:41:18 +01:00
David Baker
06ffc70aa4
Merge pull request #2127 from matrix-org/dbkr/hide_replaced_rooms
...
Hide replaced rooms
2018-08-23 09:33:40 +01:00
Bruno Windels
37e60e4fc4
wait for members loading to finish to show the avatar in the composer
2018-08-23 00:02:20 +02:00
David Baker
f679acea08
Revert "Revert "Fix showing peek preview while LL members are loading""
2018-08-22 16:35:58 +01:00
David Baker
bf7633250a
Revert "Fix showing peek preview while LL members are loading"
2018-08-22 16:16:17 +01:00
Bruno Windels
860c6355f0
do self membership checks with getMyMembership elsewhere as well
2018-08-22 14:06:28 +02:00
David Baker
b7570002e0
Hide replaced rooms
...
By using new getVisibleRooms() in js-sdk
2018-08-22 12:01:29 +01:00
David Baker
8d6d1be992
Typo
2018-08-21 16:40:04 +01:00
David Baker
7f8cd203a8
Support m.room.tombstone events
...
For https://github.com/vector-im/riot-web/issues/7164
2018-08-21 15:56:56 +01:00
David Baker
ab10b5493b
Support room creation events
...
For https://github.com/vector-im/riot-web/issues/7164
2018-08-20 16:20:59 +01:00
David Baker
9f19896df0
Support for room upgrades
...
* Show when a room upgrade is needed
* Dialog box to perform the upgrade
2018-08-17 14:54:43 +01:00
Bruno Windels
cead4096d8
Merge pull request #2118 from matrix-org/bwindels/feature_lazyloading
...
Lazy loading of room members
2018-08-16 18:14:55 +02:00
David Baker
c736ae7efb
Copyright
2018-08-14 16:53:34 +01:00
David Baker
f20920718a
Show room version number in room settings
...
Also change wording of the Room ID bit to match
Requires https://github.com/matrix-org/matrix-js-sdk/pull/689
For https://github.com/vector-im/riot-web/issues/7164
2018-08-14 14:28:30 +01:00
David Baker
05bf200a72
Don't crash if scrollbars updated before init
...
The initialisation here is done on a timer to allow the DOM
elements to be in place before it's run, so it's possible for an
update to happen ebfore the initialisation. Stop & bail out if
there is no this.stickies.
2018-08-13 13:49:22 +01:00
David Baker
f44cc8e66e
Merge pull request #2112 from matrix-org/dbkr/recognise_server_notices_room
...
Recognise server notices room(s)
2018-08-07 09:52:25 +01:00
David Baker
b5ce1ac5e1
Recognise server notices room(s)
...
and put them in their own section at the bottom
2018-08-06 18:00:40 +01:00
David Baker
b2302af708
Update room tags behaviour to match spec more
...
Fix Riot's behaviour with room tags after my cleanup in
https://github.com/matrix-org/matrix-doc/pull/1457 . Although, reading
it again, it's not clear how you're supposed to tell the difference
between a reverse-dns tag name and a legacy freeform text tag
(contains a '.'?) - I've left it detecting these as freeform text
for now.
2018-08-06 16:58:54 +01:00
Bruno Windels
802efc7694
given the != join check, isInvite will never be true
...
Also, put comments in right order
2018-08-02 11:47:24 +02:00
Bruno Windels
908de56c6d
replace getMember(myId).membership with getMyMembership
...
This works with rooms which haven't had their members
loaded yet.
2018-08-02 11:42:05 +02:00
Matthew Hodgson
fe73953d9d
fix merge; disable sticky headers; tweak chevrons
2018-07-30 09:00:11 -07:00
Matthew Hodgson
9783b6100d
Merge branch 'develop' into matthew/dharma
2018-07-29 17:03:23 +01:00
Michael Telatynski
f264075369
null-guard history properly
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-07-26 17:11:32 +01:00
Michael Telatynski
265e4267b8
remove faulty onBlur/onFocus code which caused selection to rollback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-07-26 15:00:43 +01:00
Bruno Windels
d87d34030a
fix dm detection and conf call code with lazy loading
2018-07-25 16:10:49 +02:00
Bruno Windels
f79e2eae40
might not have loaded members here yet
2018-07-25 16:10:49 +02:00
Bruno Windels
866b4bb067
use isKicked method in preview bar
2018-07-25 16:10:49 +02:00
Bruno Windels
8c9ceca14f
take into account lazy loading when enlarging avatar
2018-07-25 16:10:49 +02:00
Michael Telatynski
020e714b85
fix focus and too many <p>s after a Event>Quote in RT mode
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-07-24 15:54:24 +01:00
Michael Telatynski
afa19cd60d
make clicking autocomplete suggestions work again
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-07-24 13:48:05 +01:00
David Baker
b8ca65627b
Merge pull request #2076 from matrix-org/t3chguy/slate_cont2
...
Slate Fixes
2018-07-23 17:25:51 +01:00
Michael Telatynski
93abb4b74b
workaround to prevent Slate getting too empty when undoing RT pastes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-07-20 15:06:27 +01:00
David Baker
f9af96d422
Merge pull request #2070 from matrix-org/t3chguy/slate_cont2
...
Even More Slate Fixes :D
2018-07-19 13:49:42 +01:00