[Glitch] Use sender's `username` to column title in notification request if it's `display_name` is not set

Port 3156d04ec1 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2676/head
mogaminsk 2024-03-14 17:58:44 +09:00 committed by Claire
parent e91ede5be6
commit 88f477749c
1 changed files with 1 additions and 1 deletions

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}>