mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-03-31 21:24:27 +02:00
Update patches
This commit is contained in:
parent
634049ce7a
commit
0fb8fa0931
@ -0,0 +1,30 @@
|
||||
From f71efc87d1e8fa87ea7e8bd4cb31bb938fe4e0fc Mon Sep 17 00:00:00 2001
|
||||
From: SpiritCroc <dev@spiritcroc.de>
|
||||
Date: Wed, 17 Nov 2021 12:50:25 +0100
|
||||
Subject: Hide the "mute" notification state the same way as the other states
|
||||
|
||||
This can get in the way of the "marked as unread" icon otherwise.
|
||||
Furthermore, I didn't really like it showing there persistently either
|
||||
way.
|
||||
---
|
||||
src/components/views/rooms/RoomTile.tsx | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/components/views/rooms/RoomTile.tsx b/src/components/views/rooms/RoomTile.tsx
|
||||
index 61f865e9fc..0695075cc8 100644
|
||||
--- a/src/components/views/rooms/RoomTile.tsx
|
||||
+++ b/src/components/views/rooms/RoomTile.tsx
|
||||
@@ -313,7 +313,9 @@ export class RoomTile extends React.PureComponent<ClassProps, State> {
|
||||
|
||||
// Only show the icon by default if the room is overridden to muted.
|
||||
// TODO: [FTUE Notifications] Probably need to detect global mute state
|
||||
- mx_RoomTile_notificationsButton_show: state === RoomNotifState.Mute,
|
||||
+ //mx_RoomTile_notificationsButton_show: state === RoomNotifState.Mute,
|
||||
+ // SchildiChat: never show the icon by default. This gets in the way of the "marked as unread" icon.
|
||||
+ mx_RoomTile_notificationsButton_show: false,
|
||||
});
|
||||
|
||||
return (
|
||||
--
|
||||
2.45.0
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 2ffbb3cea351764ac33c347ba645262747bb962e Mon Sep 17 00:00:00 2001
|
||||
From: SpiritCroc <dev@spiritcroc.de>
|
||||
Date: Fri, 10 May 2024 18:58:32 +0200
|
||||
Subject: Allow muted rooms to render as unread
|
||||
|
||||
---
|
||||
src/RoomNotifs.ts | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/RoomNotifs.ts b/src/RoomNotifs.ts
|
||||
index 1fb5e5ba4d..f9cb6ed026 100644
|
||||
--- a/src/RoomNotifs.ts
|
||||
+++ b/src/RoomNotifs.ts
|
||||
@@ -263,7 +263,7 @@ export function determineUnreadState(
|
||||
return { symbol: "!", count: 1, level: NotificationLevel.Highlight };
|
||||
}
|
||||
|
||||
- if (getRoomNotifsState(room.client, room.roomId) === RoomNotifState.Mute) {
|
||||
+ if (false && getRoomNotifsState(room.client, room.roomId) === RoomNotifState.Mute) {
|
||||
return { symbol: null, count: 0, level: NotificationLevel.None };
|
||||
}
|
||||
|
||||
--
|
||||
2.45.0
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 36270f5aed00f5da899486a59c4bf172f02e7a6c Mon Sep 17 00:00:00 2001
|
||||
From: SpiritCroc <dev@spiritcroc.de>
|
||||
Date: Sun, 30 Aug 2020 15:33:01 +0200
|
||||
Subject: Increase default visible tiles
|
||||
|
||||
---
|
||||
src/stores/room-list/ListLayout.ts | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/stores/room-list/ListLayout.ts b/src/stores/room-list/ListLayout.ts
|
||||
index afc93f3b01..6020b2148d 100644
|
||||
--- a/src/stores/room-list/ListLayout.ts
|
||||
+++ b/src/stores/room-list/ListLayout.ts
|
||||
@@ -82,7 +82,7 @@ export class ListLayout {
|
||||
|
||||
public get defaultVisibleTiles(): number {
|
||||
// This number is what "feels right", and mostly subject to design's opinion.
|
||||
- return 8;
|
||||
+ return 50;
|
||||
}
|
||||
|
||||
public tilesWithPadding(n: number, paddingPx: number): number {
|
||||
--
|
||||
2.45.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user