mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-03-26 10:07:47 +01:00
30 lines
1017 B
Diff
30 lines
1017 B
Diff
From 0fa53f5f6b26b88aed25ab425ba04ebc28509684 Mon Sep 17 00:00:00 2001
|
|
From: su-ex <codeworks@supercable.onl>
|
|
Date: Tue, 22 Dec 2020 19:16:28 +0100
|
|
Subject: No red messages in 1:1 chats Close SchildiChat/schildichat-desktop#13
|
|
|
|
---
|
|
src/components/views/rooms/EventTile.tsx | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx
|
|
index eca61f7d22..59dd12e7ab 100644
|
|
--- a/src/components/views/rooms/EventTile.tsx
|
|
+++ b/src/components/views/rooms/EventTile.tsx
|
|
@@ -683,6 +683,12 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
|
|
return false;
|
|
}
|
|
|
|
+ // don't show highlights in 1:1 rooms
|
|
+ const room = cli.getRoom(this.props.mxEvent.getRoomId());
|
|
+ if (room && room.currentState.getJoinedMemberCount() === 2) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
return !!(actions?.tweaks.highlight || previousActions?.tweaks.highlight);
|
|
}
|
|
|
|
--
|
|
2.47.0
|
|
|