Commit Graph

50 Commits (e0aa142db74c65e22ef12cdb7ae739b3830a6927)

Author SHA1 Message Date
Michael Telatynski 233e2aa425 Fix bugs identified by the typescripting 2021-06-18 16:22:31 +01:00
Germain Souquet 3b69c0203c Remove resize notifier prop from RoomTile 2021-05-24 17:05:59 +01:00
Germain Souquet 0bbfb1a6d9 remove unused variable checkObjectHasNoAdditionalKeys 2021-05-24 16:18:55 +01:00
Germain Souquet 671f169457 Remove unused middlePanelResized event listener 2021-05-24 16:08:48 +01:00
Germain 6170403c10
Depile encrypted events to find the most suitable one for preview (#6056) 2021-05-19 13:25:52 +01:00
Michael Telatynski f6e8d38b87 Remove redundant `tag` prop 2021-05-13 14:23:10 +01:00
Jaiwanth 29aec4abdb Use middlePanelResized instead of noisy 2021-05-04 15:39:46 +05:30
Jaiwanth 54e139a6ad Generate previews when the room tile is maximised 2021-05-03 23:17:10 +05:30
Jaiwanth d2de115b2f Generate room preview even when minimized
Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
2021-04-29 21:37:44 +05:30
Travis Ralston a53696ff5e Fix tests 2021-04-21 16:53:29 -06:00
Travis Ralston 4be9c51dad Move all the RED_EXCLAMATION badges to a single definition 2021-04-21 16:43:25 -06:00
Travis Ralston 9227618b42 Show indicator in Room List for unsent events 2021-04-21 16:36:06 -06:00
Germain Souquet b9f80b49ad Set correct initial state for notification on room 2021-04-15 16:33:49 +01:00
Germain Souquet a59873df0b Set rooms event listeners during the correct life cycle hook 2021-04-15 15:51:00 +01:00
Robin Townsend c9c53dbcd7 Add tooltips to message previews
Signed-off-by: Robin Townsend <robin@robin.town>
2021-04-13 12:02:22 -04:00
Jaiwanth 495cbadb08 Update src/components/views/rooms/RoomTile.tsx 2021-03-19 22:46:19 +05:30
Jaiwanth 70e0b77fc4 Changed invite phrases in context menu and invite dialog 2021-03-19 21:32:52 +05:30
Jaiwanth b2a72565d3 Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into add-invite-to-context-menu 2021-03-19 20:28:10 +05:30
Travis Ralston c5935dbc61 Batch of views getting replaceableComponent decorators 2021-03-08 20:23:46 -07:00
Jaiwanth ee54327733 Update src/components/views/rooms/RoomTile.tsx 2021-02-16 18:59:22 +05:30
Jaiwanth 04d2bf1d6a Check whether user has permission to invite
Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
2021-02-15 20:55:15 +05:30
Jaiwanth f420c85985 Added invite option to room's context menu
Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
2021-02-15 19:21:26 +05:30
dangwynne dc81496c3b add optional chaining operator 2021-01-29 11:31:21 +00:00
dangwynne 992247201e Fix issue #16270 new rooms are titled 'Empty Room'. Signed-off-by: Dan Gwynne dangwynne1@gmail.com 2021-01-28 20:36:33 +00:00
J. Ryan Stinnett 462e0889f0 Fix lint 2021-01-15 14:46:38 +00:00
J. Ryan Stinnett 8a341446aa Use room-specific listeners for community prototype
Similar to message previews, this changes another area to use room-specific
listeners for better performance and avoiding warnings.
2021-01-15 14:34:56 +00:00
J. Ryan Stinnett 729356394e Use room-specific listeners for message previews
This should be a bit faster (since we now only notify one tile instead of all
for each update). It also resolves the max listener warning.

Fixes https://github.com/vector-im/element-web/issues/15121
2021-01-15 14:21:21 +00:00
Michael Telatynski 9ba33c7f80 Fix eslint ts override tsx matching and delint 2020-08-29 01:11:08 +01:00
Travis Ralston 2d4ac548d0 Override invite metadata if the server wants a group profile 2020-08-25 21:03:11 -06:00
Michael Telatynski 8f0e4dae9d Allow room tile context menu when minimized using right click 2020-08-14 12:01:16 +01:00
Travis Ralston d866b2d9ef Generate previews for rooms when the option changes
Fixes https://github.com/vector-im/element-web/issues/14853

This likely regressed in https://github.com/matrix-org/matrix-react-sdk/pull/5048 when the message preview information was made state, and the component wasn't updating the preview when the control flags changed.
2020-08-10 20:52:05 -06:00
Michael Telatynski d126f5c1e6 tidy up IconizedContextMenu CSS 2020-08-04 21:42:45 +01:00
Michael Telatynski b30ce0355e Factor out Iconized Context Menu for reusabilit 2020-08-04 21:42:39 +01:00
Travis Ralston fca6def588 Rename and document what local echo is 2020-07-30 09:15:19 -06:00
Travis Ralston 0f1b9937a9 Connect RoomTile's notification volume to local echo
This presumes success as we don't yet have a UI for failures.
2020-07-29 16:54:33 -06:00
Michael Telatynski a74470aff0 Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/room-list/desync
 Conflicts:
	src/components/views/rooms/RoomTile.tsx
2020-07-27 14:42:26 +01:00
Michael Telatynski 368d1bf699 delint
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-27 14:40:41 +01:00
Michael Telatynski 1085d89e11 RoomList listen to notificationState updates for bolding
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-27 14:39:30 +01:00
Travis Ralston 46f9d44e64 Use PureComponent instead
It ranges wildly between 10 and 50ms while ours is stable at 30-40ms, but the effort doesn't need to be duplicated.
2020-07-24 13:58:21 -06:00
Travis Ralston e3800dba0e Remove debug logging 2020-07-24 13:23:51 -06:00
Travis Ralston c3623f439c Rip hover support out of the RoomTile component
It's all handled by CSS and this literally does nothing but spam renders.
2020-07-24 13:10:39 -06:00
Travis Ralston 37035f945b Move message previews into RoomTile's state
Now that it doesn't re-render without state updates, we should just wedge it into state.
2020-07-24 13:09:26 -06:00
Travis Ralston 09808fa7be Only update RoomTiles when they change significantly 2020-07-24 12:58:10 -06:00
Travis Ralston fd15fc3984 Ensure message previews update when needed
In 9969b01c5f we stopped updating the sublist whenever we felt like it, which indirectly froze message previews for room tiles (badges, unread state, etc were unaffected because that is managed by a different store). To fix this, we simply have to listen for changes and perform an update.
2020-07-23 22:24:07 -06:00
Michael Telatynski 60a6b13f4b
Merge pull request #5026 from matrix-org/t3chguy/room-list/14440
Put low priority xor toggle back in the room list context menu
2020-07-24 00:02:50 +01:00
Travis Ralston c9da1e1874 Remove even more tags from the notification state fetching for a room 2020-07-21 20:58:59 -06:00
Michael Telatynski 29c984455e tidy up
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-21 13:43:42 +01:00
Michael Telatynski fe0c660fac Put low priority xor toggle back in the room list context menu
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-21 09:50:20 +01:00
Travis Ralston d7ada5f7c5 Remove TODO flags 2020-07-17 15:47:37 -06:00
Travis Ralston 96065ae982 RoomTile2 -> RoomTile 2020-07-17 15:43:29 -06:00