You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-17 20:02:20 +03:00
Collapse lines together to reduce line/indent spam
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
This commit is contained in:
@@ -442,8 +442,7 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string
|
||||
|
||||
return () => (
|
||||
<span>
|
||||
{
|
||||
_t(
|
||||
{ _t(
|
||||
"%(senderName)s pinned <a>a message</a> to this room. See all <b>pinned messages</b>.",
|
||||
{ senderName },
|
||||
{
|
||||
@@ -456,8 +455,7 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string
|
||||
{ sub }
|
||||
</a>,
|
||||
},
|
||||
)
|
||||
}
|
||||
) }
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -472,8 +470,7 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string
|
||||
|
||||
return () => (
|
||||
<span>
|
||||
{
|
||||
_t(
|
||||
{ _t(
|
||||
"%(senderName)s unpinned <a>a message</a> from this room. See all <b>pinned messages</b>.",
|
||||
{ senderName },
|
||||
{
|
||||
@@ -486,8 +483,7 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string
|
||||
{ sub }
|
||||
</a>,
|
||||
},
|
||||
)
|
||||
}
|
||||
) }
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -498,13 +494,11 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string
|
||||
if (allowJSX) {
|
||||
return () => (
|
||||
<span>
|
||||
{
|
||||
_t(
|
||||
{ _t(
|
||||
"%(senderName)s changed the <a>pinned messages</a> for the room.",
|
||||
{ senderName },
|
||||
{ "a": (sub) => <a onClick={onPinnedMessagesClick}> { sub } </a> },
|
||||
)
|
||||
}
|
||||
) }
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user