Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,95 @@ exports[`renderSystemMessage uses renderer for Channel Header update 1`] = `
}
testID="markdown_text"
>
updated the channel header from: old header to: new header
updated the channel header
</Text>
<Text
testID="markdown_break"
>


</Text>
<Text
selectable={false}
style={
[
{
"color": "rgba(63,67,80,0.6)",
"fontFamily": "OpenSans",
"fontSize": 16,
"fontWeight": "400",
"lineHeight": 24,
},
[
{
"fontFamily": "OpenSans-SemiBold",
"fontWeight": "600",
},
],
]
}
testID="markdown_text"
>
From:
</Text>
<Text
selectable={false}
style={
{
"color": "rgba(63,67,80,0.6)",
"fontFamily": "OpenSans",
"fontSize": 16,
"fontWeight": "400",
"lineHeight": 24,
}
}
testID="markdown_text"
>
old header
</Text>
<Text
testID="markdown_break"
>


</Text>
<Text
selectable={false}
style={
[
{
"color": "rgba(63,67,80,0.6)",
"fontFamily": "OpenSans",
"fontSize": 16,
"fontWeight": "400",
"lineHeight": 24,
},
[
{
"fontFamily": "OpenSans-SemiBold",
"fontWeight": "600",
},
],
]
}
testID="markdown_text"
>
To:
</Text>
<Text
selectable={false}
style={
{
"color": "rgba(63,67,80,0.6)",
"fontFamily": "OpenSans",
"fontSize": 16,
"fontWeight": "400",
"lineHeight": 24,
}
}
testID="markdown_text"
>
new header
</Text>
</Text>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const renderMessage = ({location, post, styles, intl, localeHolder, theme, value
const headerMessages = defineMessages({
updatedFrom: {
id: 'mobile.system_message.update_channel_header_message_and_forget.updated_from',
defaultMessage: '{username} updated the channel header from: {oldHeader} to: {newHeader}',
defaultMessage: '{username} updated the channel header\n**From:** {oldHeader}\n**To:** {newHeader}',
Comment thread
coderabbitai[bot] marked this conversation as resolved.
},
updatedTo: {
id: 'mobile.system_message.update_channel_header_message_and_forget.updated_to',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ describe('renderSystemMessage', () => {
);
expect(toJSON()).toMatchSnapshot();
expect(getByText('@username')).toBeTruthy();
expect(getByText('updated the channel header from: old header to: new header')).toBeTruthy();
expect(getByText('updated the channel header')).toBeTruthy();

expect(getByText('From:')).toBeTruthy();
expect(getByText('old header')).toBeTruthy();

expect(getByText('To:')).toBeTruthy();
expect(getByText('new header')).toBeTruthy();
});

test('uses renderer for Channel Display Name update', () => {
Expand Down
2 changes: 1 addition & 1 deletion assets/base/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
"mobile.system_message.channel_unarchived_message": "{username} unarchived the channel",
"mobile.system_message.update_channel_displayname_message_and_forget.updated_from": "{username} updated the channel display name from: {oldDisplayName} to: {newDisplayName}",
"mobile.system_message.update_channel_header_message_and_forget.removed": "{username} removed the channel header (was: {oldHeader})",
"mobile.system_message.update_channel_header_message_and_forget.updated_from": "{username} updated the channel header from: {oldHeader} to: {newHeader}",
"mobile.system_message.update_channel_header_message_and_forget.updated_from": "{username} updated the channel header\n**From:** {oldHeader}\n**To:** {newHeader}",
"mobile.system_message.update_channel_header_message_and_forget.updated_to": "{username} updated the channel header to: {newHeader}",
"mobile.system_message.update_channel_purpose_message.removed": "{username} removed the channel purpose (was: {oldPurpose})",
"mobile.system_message.update_channel_purpose_message.updated_from": "{username} updated the channel purpose from: {oldPurpose} to: {newPurpose}",
Expand Down
Loading