Use sender's username to column title in notification request if it's display_name is not set (#29575)

This commit is contained in:
mogaminsk 2024-03-14 17:58:44 +09:00 committed by GitHub
parent a32a126cac
commit 3156d04ec1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,7 @@ export const NotificationRequest = ({ multiColumn, params: { id } }) => {
}
}, [dispatch, accountId]);
const columnTitle = intl.formatMessage(messages.title, { name: account?.get('display_name') });
const columnTitle = intl.formatMessage(messages.title, { name: account?.get('display_name') || account?.get('username') });
return (
<Column bindToDocument={!multiColumn} ref={columnRef} label={columnTitle}>