Skip to content

Commit

Permalink
feat(annonces): move annonce room section below favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
marc.sirisak committed Apr 11, 2024
1 parent de4b2cb commit 2259200
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"package": "matrix-react-sdk",
"files": ["src/components/views/dialogs/security/AccessSecretStorageDialog.tsx"]
},
"use-the-term-direct-messages-not-people": {
"use-the-term-direct-messages-not-people-and-tchap-annonces": {
"github-issue": "https://github.com/tchapgouv/tchap-web-v4/issues/448",
"package": "matrix-react-sdk",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@ index 8e8e4ce..bd2b4d3 100644
<SettingsSubsectionText>
{_t("space|preferences|show_people_in_space", {
diff --git a/node_modules/matrix-react-sdk/src/components/views/rooms/RoomList.tsx b/node_modules/matrix-react-sdk/src/components/views/rooms/RoomList.tsx
index 28154c4..09f40ca 100644
index 28154c4..ac9326b 100644
--- a/node_modules/matrix-react-sdk/src/components/views/rooms/RoomList.tsx
+++ b/node_modules/matrix-react-sdk/src/components/views/rooms/RoomList.tsx
@@ -82,10 +82,10 @@ interface IState {
export const TAG_ORDER: TagID[] = [
DefaultTagID.Invite,
DefaultTagID.Favourite,
+ DefaultTagID.ServerNotice, // :TCHAP: tchap-annonces
DefaultTagID.DM,
DefaultTagID.Untagged,
DefaultTagID.LowPriority,
- DefaultTagID.ServerNotice,
DefaultTagID.Suggested,
// DefaultTagID.Archived isn't here any more: we don't show it at all.
// The section still exists in the code as a place for rooms that we know
@@ -382,7 +382,7 @@ const TAG_AESTHETICS: TagAestheticsMap = {
defaultHidden: false,
},
Expand Down

0 comments on commit 2259200

Please sign in to comment.