Michael Telatynski
df4a2218d7
Align `action_*` strings with Element X project in Localazy ( #11437 )
2023-08-22 20:55:15 +01:00
Michael Telatynski
a1328d8ef7
Switch to importing more things from the main js-sdk export ( #11376 )
2023-08-09 15:10:54 +00:00
Michael Telatynski
033c600fa2
Switch to importing @types/{event,partials} from main js-sdk export ( #11369 )
2023-08-08 10:12:12 +00:00
Michael Telatynski
24703eea8f
Switch to importing models/event from main js-sdk export ( #11363 )
2023-08-07 08:24:58 +00:00
Michael Telatynski
f1534fda79
Improve types ( #11239 )
2023-07-12 15:56:51 +01:00
Michael Telatynski
cb2b1718ff
Remove `feature_favourite_messages` as it is has been abandoned for now ( #11097 )
...
* Remove `feature_favourite_messages` as it is has been abandoned for now
* i18n
* Fix test
* Remove unused css
2023-06-15 11:02:45 +00:00
Michael Telatynski
280f6a9d93
Use MatrixClientPeg::safeGet in src/components/views/* ( #10987 )
2023-06-15 08:46:19 +01:00
Michael Telatynski
938aefc51c
Pass around MatrixClients instead of using MatrixClientPeg ( #11000 )
2023-05-30 10:36:34 +01:00
Michael Telatynski
30429df948
Eliminate the use of MatrixClientPeg in utils ( #10910 )
2023-05-23 16:24:12 +01:00
Michael Telatynski
f758cbd38a
Make more of the codebase conform to strict types ( #10859 )
2023-05-12 09:49:37 +01:00
Michael Telatynski
52017f62e1
Conform more of the codebase to `strictNullChecks` ( #10738 )
2023-05-09 18:24:40 +01:00
Michael Telatynski
e5a314617a
Conform more of the codebase to strictNullChecks ( #10505
...
* Conform more of the codebase to `strictNullChecks`
* Iterate
* Conform more of the codebase to `strictNullChecks`
* Iterate
* Iterate
* Iterate
* Iterate
2023-04-05 09:02:40 +01:00
Michael Telatynski
503df62191
Conform more of the codebase to `strictNullChecks` ( #10358
...
* Conform more of the codebase to `strictNullChecks`
* Fix types
* Iterate
* Iterate
2023-03-13 15:07:20 +00:00
Germain
8c22584f64
Remove threads labs flag and the ability to disable threads ( #9878 )
2023-02-20 14:46:07 +00:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Michael Telatynski
030b7e90bf
Enable `@typescript-eslint/explicit-function-return-type` in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Germain
7ca1b385d9
Force enable threads labs flag
2023-01-09 12:38:19 +00:00
Michael Weimann
488a08a25e
Allow reactions for broadcasts ( #9856 )
2023-01-05 08:40:09 +01:00
Germain
2d2755d145
🧵 Enable threads by default ( #9736 )
...
* Delabs threads
* remove threads reload when labs is toggled
* Fix ts strict
* fix rebase mistake
* remove .only
* fix pr comments
* re-introduce backwards compat
* Fix export test
* Fix SearchREsultTile test
* strict ts
2022-12-13 15:09:15 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Eric Eastwood
2393510a7f
Fix `getRelationsForEvent` under TypeScript `strict` mode ( #9558 )
...
* Fix getRelationsForEvent tsc strictness
* Use shared type for GetRelationsForEvent
* Fix lint
* Add alternative type
* getRelationsForEvent is not required
* Relations are optional
* Reactions are optional
* We expect relations in these tests
* Add more protection if the eventID is not defined
* Allow null too
* Better test typing
* User ID is not necessary unless something is selected
* It's okay to [].includes(null)
* Null is as good as undefined here
* Null or undefined is good here
* We have some expectations for the tests
* The room and user can be undefined too
* Protec
* Reactions are optional
* Try match signatures
* Null or undefined
* More null or undefined
* Protec
* Fix typo (wrong variable)
* Remove optional params
See https://github.com/matrix-org/matrix-react-sdk/pull/9558#discussion_r1017515913
* Fix up last maaaaybe relevant lint
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-11-21 20:54:24 -07:00
Michael Telatynski
0ef8c80815
Fix usages of useContextMenu which never pass the ref to the element ( #9449 )
2022-10-18 13:39:59 +01:00
Šimon Brandner
3eecd68175
Fix context menu being opened when clicking message action bar buttons ( #9200 )
2022-08-18 09:18:18 +02:00
Kerry
594439222d
Replace mask-images with svg components in MessageActionBar ( #9088 )
...
* Use svg components in messageactionbar
* highlight options button in pinned messages mock buttons
2022-07-25 12:43:41 +02:00
Šimon Brandner
787ace9dc5
Add `Reply in thread` button to the right-click message context-menu ( #9004 )
2022-07-23 12:13:49 +00:00
yaya-usman
017f489be6
nits fixes
2022-07-15 22:55:11 +03:00
Michael Telatynski
21d0aaf524
Use updates stable relations from js-sdk ( #8715 )
...
* Use updates stable relations from js-sdk
* Relations is now accessible on the Room instead
* Reuse more existing code and ditch confusing `isThreadRelation`
* Fix last usage of removed `isThreadRelation`
* Update tests to match removal of isThreadRelation
* Tweak method naming to closer match spec
* Fix missing method name change
2022-06-07 11:16:54 +01:00
Kerry
79a2dfe171
Live location share - enable reply and react to tiles ( #8721 )
...
* test most basic paths in messageactionbar
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use rtl for MessageActionBar test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make beacon_info events semi actionable
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove log
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test thread exception for beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* eat click events in beacon status to stop jumping from reply tile
Signed-off-by: Kerry Archibald <kerrya@element.io>
* set max width on beaconbody for render in thread panel
2022-06-02 15:43:19 +00:00
Šimon Brandner
efc36acf93
Don't open the regular browser or our context menu on right-clicking the `Options` button in the message action bar ( #8648 )
2022-05-19 15:26:35 +00:00
Travis Ralston
12cee6e29f
Add missing `key` to `ReplyInThreadButton` as used in `MessageActionBar` ( #8616 )
2022-05-16 18:09:38 -04:00
Michael Telatynski
6b0156d876
Merge remote-tracking branch 'origin/release-v3.43.0'
...
# Conflicts:
# CHANGELOG.md
# package.json
# src/components/views/messages/MessageActionBar.tsx
2022-04-26 11:49:16 +01:00
Šimon Brandner
11e0a3a8fa
Enable the message right-click context menu in the browser ( #8336 )
...
* Enable the message right-click context menu in the browser
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Move `getSelectedText()` to `strings.ts`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Move `canCancel()` to `EventUtils.ts`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-04-15 12:12:40 -06:00
Michael Telatynski
1c1d5ea5a9
[Release] Fixes around threads beta in degraded mode ( #8319 )
...
* Fix soft crash around the thread panel in degraded mode
* Better specify fallback key
* Hide MAB Threads prompt if user would have degraded mode
* Confirm user wants to enable Threads beta if in degraded mode
* Fix copy
2022-04-14 12:07:43 +01:00
Michael Telatynski
7a1a2c41d2
Improve Threads beta around degraded mode ( #8318 )
...
* Hide MAB Threads prompt if user would have degraded mode
* Confirm user wants to enable Threads beta if in degraded mode
* fix
* Fix copy
2022-04-14 11:50:55 +01:00
Michael Telatynski
ceae8bb39a
Hide the reply in thread button in deployments where beta is forcibly disabled ( #8294 )
2022-04-12 14:24:23 +00:00
Michael Telatynski
59fda5273f
When selecting reply in thread on a thread response open existing thread ( #8291 )
2022-04-12 14:42:47 +01:00
Travis Ralston
0280c27bfd
post-merge fixes
2022-04-05 10:57:16 -06:00
Travis Ralston
4057833036
Merge branch 'develop' into travis/remove-skinning
2022-04-05 10:50:37 -06:00
Germain
694c39e72d
Enable threads by default and mark it as a beta feature ( #8081 )
2022-04-05 17:15:31 +01:00
Travis Ralston
66401c844f
Step 8.5: Move right panel context
2022-03-28 14:02:31 -06:00
Travis Ralston
997d6d40bf
Step 1: Remove all usage of `@replaceableComponent`
2022-03-28 14:02:31 -06:00
Michael Telatynski
d9276426fa
When showing thread, always auto-focus its composer ( #8115 )
2022-03-23 10:54:40 +00:00
Germain
7508fd975f
Prevent thread creation on events with existing relation ( #8037 )
2022-03-11 17:51:38 +00:00
Sinharitik589
4592f9f7f9
Normalized shortcut formatting for quote expansion control ( #7995 )
2022-03-09 09:52:31 +00:00
Michael Telatynski
0e60ad98c1
Hide composer and call buttons when the room is tombstoned ( #7975 )
2022-03-04 15:53:22 +00:00
Michael Telatynski
7fa01ffb06
Improve typing around event emitter handlers ( #7816 )
2022-02-22 12:18:08 +00:00
Michael Telatynski
8fccef86d8
Wire up drag-drop file uploads for the thread view ( #7860 )
2022-02-22 11:14:56 +00:00
Šimon Brandner
ca89d3b96e
Fix `editEvent()` call ( #7846 )
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-02-18 15:15:18 +00:00
Šimon Brandner
fe7f1688dd
Move `editEvent()` to `EventUtils` ( #7836 )
2022-02-18 15:01:32 +00:00
Andy Balaam
7387f3c80a
Allow editing polls ( #7806 )
2022-02-17 09:13:05 +00:00