Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/1842 #1875

Merged
merged 5 commits into from
Sep 29, 2023
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

* Bump github actions/* to versions using node16

* Placeholder(...) for community name

* No unregistered/duplicated label for system messages

[2.0.0-alpha.11]

* Customize Launch Screen on iOS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const PerformCommunityActionComponent: React.FC<PerformCommunityActionPro
}) => {
const [formSent, setFormSent] = useState(false)

const [communityName, setCommunityName] = useState('')
const [communityName, setCommunityName] = useState('...')
const [parsedNameDiffers, setParsedNameDiffers] = useState(false)

const waitingForResponse = formSent && !hasReceivedResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { capitalizeFirstLetter } from '@quiet/common'
export const LeaveCommunity: React.FC = () => {
const community = useSelector(communities.selectors.currentCommunity)

let communityName = '' // Prevent error on initial app start
let communityName = '...' // Prevent error on initial app start

if (community?.name) {
communityName = capitalizeFirstLetter(community.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ describe('IdentityPanel', () => {
>
<h4
class="MuiTypography-root MuiTypography-h4 IdentityPanelnickname css-ajdqea-MuiTypography-root"
/>
>
...
</h4>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-ptiqhd-MuiSvgIcon-root"
Expand Down Expand Up @@ -144,7 +146,9 @@ describe('IdentityPanel', () => {
>
<h4
class="MuiTypography-root MuiTypography-h4 IdentityPanelnickname css-ajdqea-MuiTypography-root"
/>
>
...
</h4>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-ptiqhd-MuiSvgIcon-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface IdentityPanelProps {
}

export const IdentityPanel: React.FC<IdentityPanelProps> = ({ currentCommunity, accountSettingsModal }) => {
const communityName = currentCommunity?.name || ''
const communityName = currentCommunity?.name || '...'
return (
<IdentityPanelButtonStyled>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const BasicMessageComponent: React.FC<BasicMessageProps & FileActionsProp
{infoMessage ? 'Quiet' : messageDisplayData.nickname}
</Typography>
</Grid>
{userLabel && (
{userLabel && !infoMessage && (
<Grid>
<UserLabel
username={messageDisplayData.nickname}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Spinner } from '../Spinner/Spinner.component'
import { capitalizeFirstLetter } from '@quiet/common'

export const ChannelList: FC<ChannelListProps> = ({ community, tiles, communityContextMenu }) => {
let communityName = ''
let communityName = '...'
if (community?.name) {
communityName = capitalizeFirstLetter(community.name)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const CommunityContextMenu: FC = () => {

const community = useSelector(communities.selectors.currentCommunity)

let title = ''
let title = '...'
if (community?.name) {
title = capitalizeFirstLetter(community.name)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const Message: FC<MessageProps & FileActionsProps> = ({
</Typography>
</View>

{userLabel && (
{userLabel && !info && (
<View>
<UserLabel
username={representativeMessage.nickname}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const LeaveCommunityScreen: FC = () => {

const community = useSelector(communities.selectors.currentCommunity)

let communityName = ''
let communityName = '...'
if (community?.name) {
communityName = capitalizeFirstLetter(community.name)
}
Expand Down
Loading